承接 idler8/laravel-just-it 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

idler8/laravel-just-it

Composer 安装命令:

composer require idler8/laravel-just-it

包简介

Rapid development kit for application interfaces based on Laravel

README 文档

README

Introduction

Rapid development toolkit for application programming interfaces based on Laravel.
Use it to avoid repetitive CRUD development and not hinder your normal development habits.
Use it to generate standard documentation for your API.

Getting Started

composer require idler8/laravel-just-it

Route::middleware('api')
    ->namespace('Justit')
    ->prefix('r')
    ->group(function () {
        Route::get("/", function(){
            $apis = \Justit\ApiDocument::document('api');
            $resources = \Justit\Resource::document();
            return [ 'apis' => $apis,'resources'=> $resources];
        });

        Route::post("{name}", "Controller@store");
        Route::delete("{name}/{id}", "Controller@destroy");
        Route::put("{name}/{id}", "Controller@update");
        Route::get("{name}/{id}", "Controller@show");
        Route::get("{name}", "Controller@index");
        Route::get("{name}/{pre_page}/{page}", "Controller@paginate");
    });

For the configuration of Route, please refer to the official documentation of Laravel

/**
 * This method is used to extract API documentation
 * Methods without general annotations will not be extracted
 */
dd(\Justit\ApiDocument::document('api'/** prefix of middleware */));
[[
    "key" => "Controller@method",
    "name" => "From the first line of the general comment on the method",
    "describe" => "From the latter line of the general comment on the method",
    "parameters" =>  [[
        "key" => "The first part from @param",
        "name" => "The latter part from @param"
    ]],
    "urls" => ["METHOD:uri"]
]]
/**
 * This method extracts Model class documents from all app/Models directories
 * Classes that are not Model or have no general annotations will not be extracted
 */
dd(\Justit\Resource::document('App\\Models\\'/** prefix of namespace */));
[[
    "key" => "Name of Model (using. instead of subfolders delimiter)",
    "name" => "From the first line of the general comment on the class",
    "describe" => "From the latter line of the general comment on the class",
    "parameters" => [[
        "key"=>"Data table field names",
        "name"=>"Data table field comments"
    ],[
        "key"=>"(:)prefix to scope name",
        "name"=>"Function Comments"
    ],[
        "key"=>"-/+",
        "name"=>"Special parameters"
    ]],
    "relations" => [[
        "key"=>"The name of the method that will explicitly output a Relation(hasOne/hasMany)",
        "name"=>"Function Comments "
    ]]
]]
/**
 * Retrieve all resource data
 */
Http::get('/r/{resource.key}?key=value');
/**
 * Retrieve resource pagination data
 */
Http::get('/r/{resource.key}/{per_page}/{page}?key=value');
/**
 * Retrieve single resource pagination data
 */
Http::get('/r/{resource.key}/{id/+/-}?key=value');
/**
 * Destroy single resource pagination data
 */
Http::delete('/r/{resource.key}/{id/+/-}?key=value');
/**
 * Update single resource pagination data
 * Query is only used for retrieval
 */
Http::put('/r/{resource.key}/{id/+/-}?key=value',['key'=>'value']);
/**
 * Insert single resource pagination data
 */
Http::post('/r/{resource.key}',['key'=>'value');

For more practical methods, please refer to the source code or test cases

Test Environment

# Run a Docker testing environment
docker run --rm -it -v $PWD:/app $(docker build -f ./docker/Dockerfile . -q)
# Copy test cases & Run test
php artisan justit

If files in the docker directory are deleted, it is recommended to restart the Docker based testing environment.

License

Laravel Just it is open-sourced software licensed under the MIT license.

Why develop it

This is one of the achievements of my years of development experience. I have used it in many projects and it has helped me develop multiple new full stack projects simultaneously in a very short period of time. I included it in my college graduation thesis, but my teacher criticized it as useless. I want to know the public's opinion on this, so I put it here.

idler8/laravel-just-it 适用场景与选型建议

idler8/laravel-just-it 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「restful」 「laravel」 「justit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 idler8/laravel-just-it 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 idler8/laravel-just-it 我们能提供哪些服务?
定制开发 / 二次开发

基于 idler8/laravel-just-it 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-02