定制 jag/common 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jag/common

Composer 安装命令:

composer require jag/common

包简介

Common resources like classes, helpers, traits and more

README 文档

README

Author Packagist Version Software License Laravel PHP

Nah, some boilerplate here. All included packages service provider are already registered.

Option service are not included out-of-the-box, instead add its service provider. See below for instruction.

Laravel Packager are not included out-of-the-box (updated since 1.0.2). See below for instruction

Table of Contents

Included Packages

Install

Via Composer

$ composer require jag/common

Post Install

After the installation/update completed, add the service provider to the $provider array in config/app.app

'Jag\Common\CommonServiceProvider'

After that, run

$ php artisan vendor:publish

Configurations from clockwork, ide-helper, image, imagecache, and entrust generated. Also, users migration will be generated.

IDE Helper

After installing/updating composer, you can now re-generate the docs yourself

$ php artisan ide-helper:generate

You can read the full documentation of this package

Option Service Provider

If you want to include the Option Service, add the service provider to the $provider array in config/app.app

'Jag\Common\OptionServiceProvider'

After that, publish the migrations.

$ php artisan vendor:publish --provider="Jag\Common\OptionServiceProvider"
Clockwork Middleware

You need to add Clockwork middleware, in your app/Http/Kernel.php

protected $middleware = [
    'Clockwork\Support\Laravel\ClockworkMiddleware',
    ...
]
How to use Laravel Packager

NOTE: This is for developing Laravel packages but only works for Laravel ~5.1.

If you are using Laravel ~5.1 add the service provider in config/app.php

'JeroenG\Packager\PackagerServiceProvider',

This package provides you with a simple tool to set up a new packages. Nothing more, nothing less. Read more of its documentation here.

However, an article teaches you to how to create packages.

Optional Facade

Edit and Add your config/app.php at $aliases array

'aliases' => [
    ...
    'Socialite' => 'Laravel\Socialite\Facades\Socialite',
    'Image'     => 'Intervention\Image\Facades\Image',
    'Html'      => 'Illuminate\Html\HtmlFacade',
    'Form'      => 'Illuminate\Html\FormFacade',
    'Entrust'   => 'Zizaco\Entrust\EntrustFacade',
],

You can also use the class name resolution via ::class

Extend Exception Handler

You can use the Exception handler specially for developing. This includes the Whoops. You can extend your app/Exceptions/Handler.php with Jag\Common\Exceptions\Handler.

JSON Controller Response Trait

For easy JSON response on your Controller, just included the trait Jag\Common\Traits\ControllerResponsesTrait to your app/Http/Controllers/Controller.php.

Change Log

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email jayaregalinada@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

jag/common 适用场景与选型建议

jag/common 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39 次下载、GitHub Stars 达 2, 最近一次更新时间为 2015 年 07 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 jag/common 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-17