Download the PHP package arkitecht/laravel-loader without Composer

On this page you can find all versions of the php package arkitecht/laravel-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-loader

Laravel Data Loader


Database seeders are awesome for loading up your database with test data, but what about when you need to load real data into your database across environments?

You could always load that data in with migrations... but then you have to manage DB dependencies, which can get messy with relational databases, especially when doing rollbacks and resets. Plus, thats not really where they should be, and if you are using TDD (which you should be) that is not where you want them - since you probably want to create the data in your tests.

Along comes the Laravel Data Loader. You define data sources, as a Model and Unique Key(s) and then define the data. When you run the loader it will insert or update the data, preserving primary keys, and ensuring you are up to date.

Install

That is as easy as:

Setup

1. Create a new console command as normal

2. Import the data loader

3. Change the base class of your command

4. Initiate the models

Each data class take the model class you will be loading in, and the column, or columns you want to match on. Under the hood we are doing an and the data from the column(s) will be used as the $attributes sent to the method.

You can use an array for a multi dimensional unique key, ie:

5. Load the data

Real world example


 use App\Models\TimeZone;
 use Arkitecht\LaravelLoader\Console\LoadDataCommand;

 class LoadInitialData extends LoadDataCommand
 {

     protected $signature = 'data:load';

     protected $description = 'Load Initial Data';

     public function __construct()
     {
            parent::__construct();

            $this->addDataClass(TimeZone::class, 'name');
     }

     public function handle()
     {
            $this->loadTimeZones();
     }       

    /**
      * Load in the initial Time Zones
      *
      * @return void
      */
     public function loadTimeZones()
     {
         $this->loadData(TimeZone::class, [
             'name'   => 'Hawaii-Aleutian Standard Time',
             'code'   => 'HAST',
             'offset' => 'Pacific/Honolulu',
         ]);
         $this->loadData(TimeZone::class, [
             'name'   => 'Hawaii-Aleutian with Daylight Savings Time',
             'code'   => 'HADT',
             'offset' => 'US/Aleutian',
         ]);
         $this->loadData(TimeZone::class, [
             'name'   => 'Alaska Standard Time',
             'code'   => 'AKST',
             'offset' => 'Etc/GMT+9',
         ]);
         ....
    }     
}         

All versions of laravel-loader with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
laravel/framework Version >=5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package arkitecht/laravel-loader contains the following files

Loading the files please wait ....