https://github.com/wavehack/meowstic
Laravel project helper scripts
https://github.com/wavehack/meowstic
composer-package helper laravel scripts
Last synced: over 1 year ago
JSON representation
Laravel project helper scripts
- Host: GitHub
- URL: https://github.com/wavehack/meowstic
- Owner: WaveHack
- License: mit
- Created: 2017-03-04T20:34:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T09:36:56.000Z (over 9 years ago)
- Last Synced: 2025-03-15T04:03:33.151Z (over 1 year ago)
- Topics: composer-package, helper, laravel, scripts
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

## 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](#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 moves `artisan` from the project root to there.
- Moves source code from `app/` to `src/`.
- Creates a `src/Application.php` with the path overrides.
- Creates an `app/` directory and puts in the following directories normally in the root of the project:
- `bootstrap`
- `config`
- `database`
- `resources`
- `routes`
- `storage`
- Changes the following files to fix paths:
- `app/bootstrap/app.php` (including using our own `Application` class override)
- `app/bootstrap/autoload.php`
- `app/config/view.php` for our new views path
- `bin/artisan`
- `public/index.php`
- `src/Console/Kernel.php` for our new console routes path
- `src/Providers/BroadcastServiceProvider.php` for our new channel routes path
- `src/Providers/RouteServiceProvider.php` for our new api and web routes path
- `composer.json` for the psr-4 autoload path and artisan calls
## License
Meowstic is open-sourced software licensed under the [MIT License](https://opensource.org/licenses/MIT).