开源软件名称(OpenSource Name):cviebrock/laravel5-package-template开源软件地址(OpenSource Url):https://github.com/cviebrock/laravel5-package-template开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Boilerplate Laravel 5 PackageInstallationClone this repo with minimal history: git clone --depth 1 git@github.com:cviebrock/laravel5-package-template.git Rename the directory and re-init it as your own package: mv laravel5-package-template my-package
cd my-package
rm -rf .git
git init ConfigurationThe boilerplate files provide a scaffold for building your own package. You'll need to make a bunch of changes to the files we've provided to make it your own. composer.jsonEdit {
"name": "vendor/package",
...
"autoload": {
"psr-4": {
"Vendor\\Package\\": "src/"
}
},
...
}, config/packagename.phpRename src/ServiceProvider.phpOpen up In the public function boot() {
$this->handleConfigs();
// $this->handleMigrations();
// $this->handleViews();
// $this->handleTranslations();
// $this->handleRoutes();
} In the For the other methods, again change instances of "vendor" and "packagename" to your package's name. Last StepsUpdate the Finally, edit this Commit everything to your (newly initialized) git repo, and push it wherever you'll keep your package (Github, etc.). Enjoy coding! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论