wavehack/meowstic
About
Meowstic is a collection of Laravel helper scripts I use often for my projects.
Instead of having to maintain separate sh files in each repo, I decided to make it into a composer package instead.
Currently only the convert script is available.
Installation
$ composer global require wavehack/meowstic
Usage
Convert
$ cd path/to/project
$ meowstic convert
Converts a traditional Laravel project directory structure to a more sophisticated layout I use for my projects.
The basic gist of it is that source code now resides in src/, Artisan in bin/ and moves the directories bootstrap, config, database, resources, routes and storage to a new app/.
This command is only tested on a fresh Laravel project. It might produce unwanted results on an existing or modified codebase.
More specifically:
- Creates a
bin/directory and movesartisanfrom the project root to there. - Moves source code from
app/tosrc/. - Creates a
src/Application.phpwith the path overrides. - Creates an
app/directory and puts in the following directories normally in the root of the project:bootstrapconfigdatabaseresourcesroutesstorage
- Changes the following files to fix paths:
app/bootstrap/app.php(including using our ownApplicationclass override)app/bootstrap/autoload.phpapp/config/view.phpfor our new views pathbin/artisanpublic/index.phpsrc/Console/Kernel.phpfor our new console routes pathsrc/Providers/BroadcastServiceProvider.phpfor our new channel routes pathsrc/Providers/RouteServiceProvider.phpfor our new api and web routes pathcomposer.jsonfor the psr-4 autoload path and artisan calls
License
Meowstic is open-sourced software licensed under the MIT License.
Related Packages
Automatic configuration for Laravel apps to apply Tighten's standard linting & c...
Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Fram...
Version History
| Version | Released | License |
|---|---|---|
| v0.1.13 | MIT | |
| v0.1.12 | MIT | |
| v0.1.11 | MIT | |
| v0.1.10 | MIT | |
| v0.1.9 | MIT | |
| v0.1.8 | MIT | |
| v0.1.7 | MIT | |
| v0.1.6 | MIT | |
| v0.1.5 | MIT | |
| v0.1.4 | MIT | |
| v0.1.3 | MIT | |
| v0.1.2 | MIT | |
| v0.1.1 | MIT | |
| v0.1.0 | MIT |