{"id":16673821,"url":"https://github.com/patinthehat/laravel-require","last_synced_at":"2025-09-07T15:40:00.035Z","repository":{"id":57036243,"uuid":"87693272","full_name":"patinthehat/laravel-require","owner":"patinthehat","description":"Laravel 5 package that installs laravel packages with composer, then automatically registers service providers.","archived":false,"fork":false,"pushed_at":"2017-04-24T13:30:29.000Z","size":44,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-24T18:17:53.364Z","etag":null,"topics":["artisan","artisan-command","automation","composer","laravel","laravel-5","laravel-5-package","laravel5"],"latest_commit_sha":null,"homepage":null,"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/patinthehat.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-04-09T08:16:41.000Z","updated_at":"2019-10-16T07:27:44.000Z","dependencies_parsed_at":"2022-08-24T06:40:14.310Z","dependency_job_id":null,"html_url":"https://github.com/patinthehat/laravel-require","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/patinthehat/laravel-require","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flaravel-require","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flaravel-require/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flaravel-require/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flaravel-require/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patinthehat","download_url":"https://codeload.github.com/patinthehat/laravel-require/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patinthehat%2Flaravel-require/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262963939,"owners_count":23391916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["artisan","artisan-command","automation","composer","laravel","laravel-5","laravel-5-package","laravel5"],"created_at":"2024-10-12T12:28:17.103Z","updated_at":"2025-07-01T12:38:35.198Z","avatar_url":"https://github.com/patinthehat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## laravel-require\n---\n\nThis Laravel 5 package provides a `require:package` artisan command, which first installs a package via composer, then attempts to automatically register its service provider(s) and facades.  \n\nThis makes it even easier to install a Laravel package!\n\n*Written and tested with Laravel 5.4.*\n\n---\n#### Installation\n\nYou may install this package using composer:\n\t`composer require patinthehat/laravel-require`\n\t\nOnce it's installed, you must add the service provider to the 'providers' section in your `config/app.php` file:\n\n```php\nLaravelRequire\\LaravelRequireServiceProvider::class,\n```\n\nYou will now have a `require:package {package-name}` command available in artisan. It will attempt to automatically register the service provider for a package after installation, and will let you know if it is unable to do so.  If this happens, you will have to register the package manually.\n\n---\n#### Requirements\n\nIn order for `laravel-require` to work properly, you must either have `composer.phar` in your project's base directory or have the `composer` command available in your environment's PATH variable.\n\n---\n#### Example Usage\n\n```\n$ php artisan require:package laracasts/flash\n```\nThis installs and registers the `flash` package from laracasts.\n\n```\n$ php artisan require:package laracasts/flash --register-only\n``` \nThis will skip running the `composer require` command entirely, and only attempt to register the package's Service Providers and Facades.\n\n---\n#### How it works\n\n`laravel-require` first creates a list of files in the package that might contain a Service Provider or Facade.  It first attempts to locate Service Providers/Facades through matching filenames.  If this fails, the contents of the files are scanned to locate the Service Providers and Facades.\n\n---\n#### License\n\nThis package is open-source software, released under the [MIT license](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatinthehat%2Flaravel-require","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatinthehat%2Flaravel-require","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatinthehat%2Flaravel-require/lists"}