jeroennoten/laravel-psp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jeroennoten/laravel-psp

最新稳定版本:v2.0.2

Composer 安装命令:

composer require jeroennoten/laravel-psp

包简介

Laravel Package Service Provider for autoloading dependencies of packages in development

README 文档

README

For Laravel 5.1 and older, use the 1.0 branch

Laravel Package Service Provider

Developing packages in Laravel 5 is easy: just create a subdirectory for your package in a directory packages, add the necessary autoload details in your composer.json file and you're good to go. Unless... your package has dependencies on other packages. Then you need to require_once the vendor/autoload.php file of each package. That is exactly what this package does. Of course, you can also use more heavy Laravel package development tools, such as Studio or Laravel Packager, but if you (like me) don't really need all that additional stuff, you can use this package.

Installation

  1. Require the package using composer:

    composer require jeroennoten/laravel-psp
    
  2. Add the service provider to the providers in config/app.php:

    JeroenNoten\LaravelPsp\ServiceProvider::class,
  3. Create an empty packages directory in the root of your project.

Now you're ready to create your awesome packages.

Creating A New Package

  1. In the packages directory, create a subdirectory for your new package, e.g. packages/your-package.

  2. In your composer.json file, define the autoloading properties for your package like so (assuming that you use PSR-4 autoloading from the src subdirectory in your package directory):

    "autoload": {
        "psr-4": {
            "YourVendorNamespace\\YourPackageNameSpace\\": "packages/your-package/src"
        }
    },

Done! You're now ready to develop your package.

Note that this package assumes that your packages reside in a directory called packages. This is not (yet) configurable.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固