smorken / importer
Laravel Eloquent Importer
v6.3.2
2021-07-27 19:17 UTC
Requires
- php: ^7.2|^8.0
- illuminate/console: ^6.0
- illuminate/mail: ^6.0
- illuminate/queue: ^6.0
- illuminate/support: ^6.0
- smorken/errors: ^6.0
- smorken/ext-controller: ^6.0
- smorken/ext-database: ^6.0
- smorken/model: ^6.0
- smorken/sanitizer: ^6.0
- smorken/storage: ^6.0
- smorken/support: ^6.0
Requires (Dev)
- fakerphp/faker: ^1.15.0
- mockery/mockery: ^1.0
- orchestra/testbench-browser-kit: ^4.0
- phpunit/phpunit: ^8.0
- smorken/docker: *
- smorken/roles: ^6.0
README
License
This software is open-sourced software licensed under the MIT license
The Laravel framework is open-sourced software licensed under the MIT license
Requirements
- PHP 5.5+
- Composer
Composer
"smorken/importer": "~5.0"
Use
- Add service providers to
config/app.php
\Smorken\Importer\ServiceProvider::class
\Smorken\Importer\CleanupServiceProvider::class
- Add controller to
app\Http\routes.php
Route::controller('importer', '\Smorken\Importer\Http\Controllers\ImportController');
- Make sure to handle authentication/authorization
- Publish the config/views/db tags and run the database migrations
php artisan vendor:publish --provider="Smorken\Importer\ServiceProvider" --tag=db --tag=config
php artisan migrate
- Edit the config file
config/importer.php
- Create your Import and Cleanup providers and add to the config
Import Examples
/src/Import/Providers/Examples
Cleanup Examples
/srce/Import/Cleanup/Examples
Artisan commands
php artisan importer:import
php artisan importer:cleanup