Download the PHP package larablocks/highway without Composer
On this page you can find all versions of the php package larablocks/highway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package highway
Highway (Beta)
A Laravel 5.0+ package that facilitates easy and simple transferring of data between different data storage and format types (CSV, Databases)
Coming Soon - (XML, JSON, YAML, Eloquent Models)
Note: All Larablocks packages will have releases in line with the major Laravel framework version release. (Ex. Highway 5.2. is tested to work with Laravel 5.2. while Highway 5.1. is tested to worked with Laravel 5.1.)
Installation
Add larablocks/highway
as a requirement to composer.json
:
Update your packages with composer update
or install with composer install
.
Laravel Integration
To wire this up in your Laravel project you need to add the service provider. Open app.php
, and add a new item to the providers array.
Then you may add a Facade for more convenient usage. In your app.php
config file add the following line to the aliases
array.
Note: The Highway facade will load automatically, so you don't have to add it to the app.php
file but you may still want
to keep record of the alias.
To publish the default config file config/highway.php
use the artisan command:
php artisan vendor:publish --provider="Larablocks\Highway\HighwayServiceProvider"
Usage as a Facade
Format Readers
Highway allows for you to read from one content format. First add the content format type and configuration for the format you would like Highway to read from.
CSV Reader
Database Reader
Format Writers
Highway allows for you to write to multiple content formats. After you have set up your one reader you may include multiple writers. Add these content format types and their configurations.
CSV Writer
Database Writer
Run the Process
Once at least one reader and writer have been added you may run the process of transferring the data.
Examples
Single Writer Example
Multiple Writer Example
License
Highway is open-sourced software licensed under the MIT license