{"id":18358672,"url":"https://github.com/svenluijten/artisan-shortcuts","last_synced_at":"2025-04-06T13:31:36.896Z","repository":{"id":32640619,"uuid":"138423783","full_name":"svenluijten/artisan-shortcuts","owner":"svenluijten","description":"🍰 Register shortcuts to execute multiple artisan commands","archived":false,"fork":false,"pushed_at":"2024-03-26T15:49:15.000Z","size":63,"stargazers_count":57,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"1.x","last_synced_at":"2025-03-22T00:44:14.338Z","etag":null,"topics":["artisan","artisan-command","cli","command-line","hacktoberfest","laravel","laravel-5-package","laravel-artisan","laravel-framework","laravel-package"],"latest_commit_sha":null,"homepage":"https://git.io/ascts","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/svenluijten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-23T18:12:40.000Z","updated_at":"2023-06-24T17:48:55.000Z","dependencies_parsed_at":"2024-03-26T16:50:57.412Z","dependency_job_id":"e21a5da9-fd05-41fe-b8e5-b82c992b6fd0","html_url":"https://github.com/svenluijten/artisan-shortcuts","commit_stats":{"total_commits":57,"total_committers":4,"mean_commits":14.25,"dds":0.3508771929824561,"last_synced_commit":"5f5a62779ccade2f022139bdade02ba56523107b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fartisan-shortcuts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fartisan-shortcuts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fartisan-shortcuts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenluijten%2Fartisan-shortcuts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svenluijten","download_url":"https://codeload.github.com/svenluijten/artisan-shortcuts/tar.gz/refs/heads/1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247488536,"owners_count":20946957,"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","cli","command-line","hacktoberfest","laravel","laravel-5-package","laravel-artisan","laravel-framework","laravel-package"],"created_at":"2024-11-05T22:19:06.430Z","updated_at":"2025-04-06T13:31:36.538Z","avatar_url":"https://github.com/svenluijten.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![artisan-shortcuts](https://user-images.githubusercontent.com/11269635/41874111-3489070c-78c7-11e8-920a-de918c4a0cc4.jpg)\n\n# Laravel Artisan Shortcuts\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-tests]][link-tests]\n[![StyleCI][ico-styleci]][link-styleci]\n\nHave you ever executed 2 or 3 artisan commands _over_, and _over_, and _over_ in\nyour Laravel projects? Me too! That's what prompted this package. With it, you can\ndefine \"shortcuts\" to bundle up those commonly used commands into short, memorable\nnames (or long, convoluted ones, that's up to you!).\n\n## Installation\nYou'll have to follow a couple of simple steps to install this package.\n\n### Downloading\nVia [composer](http://getcomposer.org):\n\n```bash\n$ composer require sven/artisan-shortcuts\n```\n\nOr add the package to your dependencies in `composer.json` and run\n`composer update` on the command line to download the package:\n\n```json\n{\n    \"require\": {\n        \"sven/artisan-shortcuts\": \"^1.0\"\n    }\n}\n```\n\n\n### Registering the service provider\nIf you're [not using auto-discovery](https://laravel.com/docs/5.6/packages#package-discovery),\nregister `Sven\\ArtisanShortcuts\\ServiceProvider::class` in your `config/app.php` file.\n\n### Publishing the configuration file\nTo publish this package's configuration file, execute the following command and pick\n`Sven\\ArtisanShortcuts\\ServiceProvider` from the list:\n\n```bash\n$ php artisan vendor:publish\n```\n\n## Usage\nAfter publishing the configuration file, you can define your shortcuts in `config/shortcuts.php`. Knowing\nthat, creating your own artisan shortcuts is fairly straightforward. Take a look at the following\nconfiguration:\n\n```php\nreturn [\n    'custom-command' =\u003e [\n        FirstCommand::class =\u003e [\n            '--option' =\u003e 'value',\n        ],\n        SecondCommand::class,\n    ],\n];\n```\n\nRunning `php artisan custom-command` will execute `FirstCommand` with the option `--option=value`,\nand `SecondCommand` without any arguments or options.\n\nSomething I use this for all the time is [Barry van den Heuvel's `laravel-ide-helper` commands](https://github.com/barryvdh/laravel-ide-helper):\n\n```php\nreturn [\n    'ide' =\u003e [\n        GeneratorCommand::class,\n        ModelsCommand::class =\u003e ['--nowrite' =\u003e true],\n        MetaCommand::class,\n    ],\n];\n```\n\nInstead of using the FQCN for the command classes, you can also use the command names:\n\n```php\nreturn [\n    'clear' =\u003e [\n        'cache:clear',\n        'config:clear',\n        'view:clear',\n    ],\n];\n```\n\n## Supported versions\nLook at the table below to find out what versions of Laravel are supported on what version\nof this package:\n\n| Laravel       | Artisan Shortcuts |\n|---------------|-------------------|\n| `5.5` - `8.x` | `^1.0`            |\n\n## Contributing\nAll contributions (pull requests, issues and feature requests) are\nwelcome. Make sure to read through the [CONTRIBUTING.md](CONTRIBUTING.md) first,\nthough. See the [contributors page](../../graphs/contributors) for all contributors.\n\n## License\n`sven/artisan-shortcuts` is licensed under the MIT License (MIT). Please see the\n[license file](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/sven/artisan-shortcuts.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/sven/artisan-shortcuts.svg?style=flat-square\n[ico-tests]: https://img.shields.io/github/actions/workflow/status/svenluijten/artisan-shortcuts/tests.yml?style=flat-square\n[ico-styleci]: https://styleci.io/repos/138423783/shield\n\n[link-packagist]: https://packagist.org/packages/sven/artisan-shortcuts\n[link-downloads]: https://packagist.org/packages/sven/artisan-shortcuts\n[link-tests]: https://github.com/svenluijten/artisan-shortcuts/actions/workflows/tests.yml\n[link-styleci]: https://styleci.io/repos/138423783\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenluijten%2Fartisan-shortcuts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvenluijten%2Fartisan-shortcuts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenluijten%2Fartisan-shortcuts/lists"}