sandpkg/mypkg
Composer 安装命令:
composer require sandpkg/mypkg
包简介
README 文档
README
A custom made Laravel5 package boilerplate made for package development purpose, which contains publish code for :
- Config
- View
- Assets
- Migrations
- Seeds
- Routes
Usage
1- Clone this repository into your package development folder.
2- Change src/Package to your package name. Customize the package's composer.json autoload section to reflect the previous change.
3- Customize Package/PackageServiceProvider with the correct namespace and the name of your package, and replace the $packageNamespace attribute.
protected $packageName = 'yourpackagename';
4- Add the package in your application's composer.json autoload section to make it available in your application.
"psr-4": {
"App\\": "app/",
"Vendor\\Package\\": "packages/vendor/package/src/Package"
}
5- Run :
composer dump-autoload
6- Add the newly create package's service provider to your config/app.php provider's list.
7- Have fun!
Package dependencies
Laravel won't autoload the vendor/ path in your package's development folder. Easiest workaround is to add them in your main application's composer.json.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Sand91
- 更新时间: 2015-06-16