Download the PHP package dpc/importer without Composer

On this page you can find all versions of the php package dpc/importer. 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 importer

Total Downloads Latest Stable Version License

Laravel Importer

Requirements:

Why?

This package allows you to import data from another database locally.

The entire seeding process is run in a transaction by default

How?

Installation:

Use composer to install the package:

Install the service provider in your config file (config/app.php)

Publish the vendor files by running:

This will create an importer.php config file in config directory

Initialization:

Make sure you have created a new database connection for your temporary database (from where you want to import the data) and it contains the required data.

You need to set up the connection name along with the array of the seeders in the config file. The array will determine the order in which the seeders run.

An example of the config file:

Creating The Seeders:

Create your own Seeder class that extends Dpc\Importer\AbstractSeed.

The Seeder class should implement these 2 methods:

getData(): This function is responsible for fetching the data from the database into the seeder. This function does not return the data but an instance of the seeder. The data is available in $this->data

seed() : This function is called after data is loaded into the class property. Define your seeding process here.

prepareData() : This is an optional function that is called before the data is seeded. Can be used to

The connection is injected into the seeds so you can use $this->manager->table(<tableName>) to access the data in the temporary database.

The entire seeding operation is wrapped inside a transaction.

Running The Seeds:

To run the seeds:

Lastly....

Do star this repo. It means a lot to the author (oh wait.. that's me :P )

What's Next?

Wanna Contribute?

Not fussy about standards so just drop in a PR.

If you find any issues or want to make future proposals, create an issue here.

Wanna contact me?


All versions of importer with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
illuminate/support Version 5.4.*
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 dpc/importer contains the following files

Loading the files please wait ....