Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piterden/seeder_make-extension
[streams-addon] Extended seeder maker command
https://github.com/piterden/seeder_make-extension
addon artisan command-line generator laravel pyrocms seeder streams-platform
Last synced: 25 days ago
JSON representation
[streams-addon] Extended seeder maker command
- Host: GitHub
- URL: https://github.com/piterden/seeder_make-extension
- Owner: Piterden
- Created: 2017-04-06T02:14:49.000Z (over 7 years ago)
- Default Branch: 1.0
- Last Pushed: 2017-06-17T05:53:13.000Z (over 7 years ago)
- Last Synced: 2024-08-03T09:06:58.508Z (4 months ago)
- Topics: addon, artisan, command-line, generator, laravel, pyrocms, seeder, streams-platform
- Language: PHP
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Seeder Make Command
## Streams Platform Addon. `seeder_make-extension` for PyroCMS.
> Enhancement of standard `make:seeder` command.
## Features
* Needs addon to be selected;
* Checks for available streams in addon;
* Ask for which of streams you would like to create seeder;
* Creates one seeder for addon and by one on each selected stream;
* Included config repository and main stream repository.
***
## Installation
### Step 1
Run
```bash
$ composer require defr/seeder_make-extension
```
Either, add to `require` section of `composer.json`:
```json
"defr/seeder_make-extension": "~1.0.0",
```
Run `composer update` command, which will install extension to the `core` folder!
### Step 2
Then you would need to install extension to PyroCMS
```bash
$ php artisan extension:install seeder_make
```
or
```bash
$ php artisan addon:install defr.extension.seeder_make
```
***
## Usage
### Available options
```bash
$ php artisan help make:seeder
Usage:
make:seeder [options] [--]Arguments:
namespace The namespace of the addonOptions:
--stream[=STREAM] The stream slug.
--shared Indicates if the addon should be created in shared addons.
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--env[=ENV] The environment the command should run under
--app[=APP] The application the command should run under.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```
### Creating seeders
```bash
$ php artisan make:seeder defr.module.backup_manager
```
***
## Examples
### Example of generated stream seeder
```php
config = $config;
$this->dumps = $dumps;
}/**
* Run the seeder
*/
public function run()
{}
}
```
***