{"id":36979111,"url":"https://github.com/aheenam/laravel-package-cli","last_synced_at":"2026-01-13T22:48:41.047Z","repository":{"id":56942368,"uuid":"108568964","full_name":"aheenam/laravel-package-cli","owner":"aheenam","description":"A Command Line Tool to easily scaffold Laravel Packages","archived":true,"fork":false,"pushed_at":"2018-09-05T16:55:39.000Z","size":63,"stargazers_count":30,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-08T05:10:53.016Z","etag":null,"topics":["composer","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aheenam.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-27T16:26:10.000Z","updated_at":"2024-05-06T09:28:17.000Z","dependencies_parsed_at":"2022-08-21T02:10:19.850Z","dependency_job_id":null,"html_url":"https://github.com/aheenam/laravel-package-cli","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/aheenam/laravel-package-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheenam%2Flaravel-package-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheenam%2Flaravel-package-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheenam%2Flaravel-package-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheenam%2Flaravel-package-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aheenam","download_url":"https://codeload.github.com/aheenam/laravel-package-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aheenam%2Flaravel-package-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","laravel","php"],"created_at":"2026-01-13T22:48:40.906Z","updated_at":"2026-01-13T22:48:41.033Z","avatar_url":"https://github.com/aheenam.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel Package CLI\n===\n\nThis project delivers a simple set of Console Commands to generate a directory structure for laravel package development.\n\nFor example simply create the complete directory structure for a new package by calling `laravel-package generate vendor/package-name`\n\nInstallation\n---\nInstall this command as a global composer package\n\n```bash\n$ composer global require aheenam/laravel-package-cli\n```\n\nUsage\n---\n\nYou can then create a new repository by calling the following command:\n\n```bash\n$ laravel-package generate vendor/package-name\n```\n\nThis command will create a directory named `package-name` and will setup a basic setup for creating a Laravel package.\n\nThe directory structure will look like following:\n\n```bash\n├── database/\n│   ├── .gitkeep\n├── config/\n│   ├── package-name.php\n├── src/\n│   ├── PackageNameServiceProvider.php\n├── tests/\n│   ├── TestCase.php\n├── .gitignore\n├── CHANGELOG.md\n├── composer.json\n├── LICENSE\n├── phpunit.xml\n├── README.md\n\n```\n\nAll the files and classes will have set the correct names and namespaces, but remember that the generator is just creating a starting point. You should go through the files and add stuff that is missing.\n\n### Pass a custom path\n\nYou can also pass an second argument specifying the path where the packages should be generated.\n\n```bash\n$ laravel-package generate vendor/package-name packages/aheenam/\n```\n\nAbove example would generate the package at `./packages/aheenam/packages-name`. This can be handy if you want to use this generator within an existing Laravel project.\n\n### The `--force` option\n\nBy default you will get an error notice if a directory with given package name already exists. You can ignore existing directories by using the `--force` flag:\n\n```bash\n$ laravel-package generate vendor/package-name --force\n```\n\n### Install composer dependecies\n\nUsing the `--install` flag, you can enforce that, after the generation of the package is done, the command changes into the new directory and runs `composer install` to install the dependecies.\n\n### Generate a LICENSE\n\nYou can pass an option to not only create an empty LICENSE file, but also populate it with the appropriate LICENSE content.\n\n```bash\n$ laravel-package generate vendor/package-name --license=MIT\n```\n\nCurrently there are 3 LICENSE types implemented: `MIT`, `Apache 2.0` and `GNU GPL v3`. Just pass the names and you should get your LICENSE generated.\n\nChangelog\n---\nCheck [CHANGELOG](CHANGELOG.md) for the changelog\n\nTesting\n---\nTo run tests use\n\n```bash\n$ composer test\n```\n\nIf you are working on a windows machine use\n\n```bash\nvendor\\bin\\phpunit\n```\n\nContributing\n---\n*Information will follow soon*\n\n\nSecurity\n---\nIf you discover any security related issues, please email rathes@aheenam.com or use the issue tracker of GitHub.\n\nAbout\n---\nAheenam is a small company from NRW, Germany creating custom digital solutions. Visit [our website](https://aheenam.com) to find out more about us.\n\nLicense\n---\nThe MIT License (MIT). Please see [License File](https://github.com/Aheenam/laravel-translatable/blob/master/LICENSE)\nfor more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faheenam%2Flaravel-package-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faheenam%2Flaravel-package-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faheenam%2Flaravel-package-cli/lists"}