https://github.com/64robots/laravel-content-importer
Import and and save file contents from a remote or local sources
https://github.com/64robots/laravel-content-importer
Last synced: 2 months ago
JSON representation
Import and and save file contents from a remote or local sources
- Host: GitHub
- URL: https://github.com/64robots/laravel-content-importer
- Owner: 64robots
- License: mit
- Created: 2021-04-19T12:19:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T11:07:50.000Z (almost 4 years ago)
- Last Synced: 2025-02-16T12:29:55.699Z (over 1 year ago)
- Language: PHP
- Size: 361 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Laravel Content Importer
Import and save contents of files form local or remote storage
## Installation
You can install the package via composer:
```bash
composer require 64robots/content-import
```
## Usage
Publish Migrations and default configurations.
```bash
php artisan vendor:publish --provider="R64\ContentImport\ContentImportServiceProvider"
```
This package exposes 2 commands
Import files from a disk
``` bash
php artisan files:import
```
Read and save contents imported files
```bash
php artisan files:process
```
## Supported File formats
- csv
## Available Configs
- directory `parent directory where files to be imported are stored. defaults to imports`
- chunck_size `defines how large contents of your file should be chucked into. defaults to 1000`
- heading_row: ` a heading row for your files (a row in which each cells indicates the purpose of that column)`
### Testing
``` bash
composer test
```
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email agyenim@64robots.com instead of using the issue tracker.
## Credits
- [Agyenim Boateng](https://github.com/64robots)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.