├── .gitignore ├── README.md ├── bats ├── art.bat ├── clear.bat ├── controller.bat ├── event.bat ├── factory.bat ├── fresh.bat ├── link.bat ├── listen.bat ├── listener.bat ├── mail.bat ├── make.bat ├── middleware.bat ├── migrate.bat ├── migration.bat ├── model.bat ├── mtest.bat ├── notification.bat ├── pest.bat ├── policy.bat ├── publish.bat ├── request.bat ├── resource.bat ├── seed.bat ├── seeder.bat ├── serve.bat ├── test.bat └── tinker.bat ├── bin ├── short-artisan-install └── short-artisan-uninstall └── composer.json /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Laravel Short Artisan 2 | 3 | [![Latest Version on Packagist](https://img.shields.io/packagist/v/Syrian-Open-Source/laravel-short-artisan.svg?style=flat-square)](https://packagist.org/packages/Syrian-Open-Source/laravel-short-artisan) 4 | [![Total Downloads](https://img.shields.io/packagist/dt/Syrian-Open-Source/laravel-short-artisan.svg?style=flat-square)](https://packagist.org/packages/Syrian-Open-Source/laravel-short-artisan) 5 | [![GitHub stars](https://img.shields.io/github/stars/Syrian-Open-Source/laravel-short-artisan)](https://github.com/Syrian-Open-Source/laravel-short-artisan/stargazers) 6 | [![GitHub issues](https://img.shields.io/github/issues/Syrian-Open-Source/laravel-short-artisan)](https://github.com/Syrian-Open-Source/laravel-short-artisan/issues) 7 | [![GitHub forks](https://img.shields.io/github/forks/Syrian-Open-Source/laravel-short-artisan)](https://github.com/Syrian-Open-Source/laravel-short-artisan/network) 8 | 9 | This package is meant to be installed globally, and it's a set of aliases for php artisan commands. It doesn't require anything to be installed just add it with composer as a global dependency, run the installation command, and you're good to go. 10 | ```shell 11 | composer global require syrian-open-source/laravel-short-artisan 12 | short-artisan-install 13 | ``` 14 | 15 | ## Usage 16 | 17 | Once this package is installed go to any Laravel project folder and use it: 18 | ```shell 19 | # basic usage 20 | art make:model Post -crm # short for php artisan make:model Post -crm 21 | # you can make it shorter like this 22 | model Post -crm 23 | ``` 24 | 25 | ## List of available aliases 26 | | Alias | Command | 27 | |----------------|---------------------------------| 28 | | `art` | `php artisan` | 29 | | `clear` | `php artisan optimize:clear` | 30 | | `controller` | `php artisan make:controller` | 31 | | `event` | `php artisan make:event` | 32 | | `factory` | `php artisan make:factory` | 33 | | `fresh` | `php artisan migrate:fresh` | 34 | | `link` | `php artisan storage:link` | 35 | | `listen` | `php artisan queue:listen` | 36 | | `listener` | `php artisan make:listener` | 37 | | `factory` | `php artisan make:factory` | 38 | | `make` | `php artisan make:` | 39 | | `mail` | `php artisan make:mail` | 40 | | `middleware` | `php artisan make:middleware` | 41 | | `migrate` | `php artisan migrate` | 42 | | `migration` | `php artisan make:migration` | 43 | | `model` | `php artisan make:model` | 44 | | `mtest` | `php artisan make:test` | 45 | | `notification` | `php artisan make:notification` | 46 | | `pest` | `php artisan make:test --pest` | 47 | | `policy` | `php artisan make:policy` | 48 | | `publish` | `php artisan vendor:publish` | 49 | | `request` | `php artisan make:request` | 50 | | `resource` | `php artisan make:resource` | 51 | | `seed` | `php artisan seed` | 52 | | `seeder` | `php artisan make:seeder` | 53 | | `serve` | `php artisan serve` | 54 | | `test` | `php artisan test` | 55 | | `tinker` | `php artisan make:tinker` | 56 | 57 | Uninstallation 58 | -------------- 59 | To remove the aliases all you have to do is run this command: 60 | ```shell 61 | short-artisan-uninstall 62 | ``` 63 | 64 | TODO 65 | ---- 66 | - [x] Add uninstall command 67 | - [ ] Add support to all artisan commands 68 | - [ ] Refactor commands with `symfony/console` 69 | - [ ] Add output to commands 70 | 71 | Changelog 72 | --------- 73 | Please see the [CHANGELOG](https://github.com/syrian-open-source/laravel-short-artisan/blob/master/CHANGELOG.md) for 74 | more information about what has changed or updated or added recently. 75 | 76 | Security 77 | -------- 78 | If you discover any security related issues, please email them first to roduan98@gmail.com, if we do not fix it 79 | within a short period of time please open a new issue describing your problem. 80 | 81 | Credits 82 | ------- 83 | [Roduan Kareem Aldeen](https://www.linkedin.com/in/roduankd) 84 | 85 | About Syrian Open Source 86 | ------- 87 | The Syrian Open Source platform is the first platform on GitHub dedicated to bringing Syrian developers from different 88 | cultures and experiences together, to work on projects in different languages, tasks, and versions, and works to attract 89 | Syrian developers to contribute more under one platform to open source software, work on it, and issue it with high 90 | quality and advanced engineering features, which It stimulates the dissemination of the open-source concept in the 91 | Syrian software community, and also contributes to raising the efficiency of developers by working on distributed 92 | systems and teams. 93 | -------------------------------------------------------------------------------- /bats/art.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | php artisan %* -------------------------------------------------------------------------------- /bats/clear.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art optimize:clear -------------------------------------------------------------------------------- /bats/controller.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:controller %* -------------------------------------------------------------------------------- /bats/event.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:event %* -------------------------------------------------------------------------------- /bats/factory.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:factory %* -------------------------------------------------------------------------------- /bats/fresh.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art migrate:fresh %* -------------------------------------------------------------------------------- /bats/link.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art storage:link %* -------------------------------------------------------------------------------- /bats/listen.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art queue:listen %* -------------------------------------------------------------------------------- /bats/listener.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:listener %* -------------------------------------------------------------------------------- /bats/mail.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:mail %* 3 | -------------------------------------------------------------------------------- /bats/make.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:%* -------------------------------------------------------------------------------- /bats/middleware.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:middleware %* 3 | -------------------------------------------------------------------------------- /bats/migrate.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art migrate %* -------------------------------------------------------------------------------- /bats/migration.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:migration %* -------------------------------------------------------------------------------- /bats/model.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:model %* -------------------------------------------------------------------------------- /bats/mtest.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:test %* -------------------------------------------------------------------------------- /bats/notification.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:notification %* -------------------------------------------------------------------------------- /bats/pest.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:test %* --pest -------------------------------------------------------------------------------- /bats/policy.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:policy %* -------------------------------------------------------------------------------- /bats/publish.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art vendor:publish %* -------------------------------------------------------------------------------- /bats/request.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:request %* -------------------------------------------------------------------------------- /bats/resource.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:resource %* -------------------------------------------------------------------------------- /bats/seed.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art db:seed %* -------------------------------------------------------------------------------- /bats/seeder.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art make:seeder %* -------------------------------------------------------------------------------- /bats/serve.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art serve %* -------------------------------------------------------------------------------- /bats/test.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art test %* -------------------------------------------------------------------------------- /bats/tinker.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | art tinker %* -------------------------------------------------------------------------------- /bin/short-artisan-install: -------------------------------------------------------------------------------- 1 |