Download the PHP package pmatseykanets/artisan-io without Composer

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

artisan-io

StyleCI tests Latest Stable Version License

This package adds data import capability to your Laravel project. It contains an artisan command import:delimited which allows you, as the name implies, to import delimited data (CSV, TSV, etc) into your local or remote database.

Main features:

If you find this package usefull, please consider bying me a coffee.

Buy Me a Coffee at ko-fi.com

Installation

You can install the package via composer:

If you're using Laravel < 5.5 or if you have package auto-discovery turned off you have to manually register the service provider:

Alternatively you can register the command yourself

Open app\Console\Kernel.php in the editor of your choice and add the command to the $commands array

Usage

Examples

Lets say we have employee.csv file

table employee the migration for which may look like

and model \App\Employee

Insert

If employees table is empty and you'd like to populate it

Note: The buity of using Eloquent model in this case is that timestamps created_at and updated_at will be populated by Eloquent automatically.

Upsert

Now let's assume John's record is already present in the table. In order to update Jon's record and insert Jane's one you'd need to cnahge the mode and specify key field(s).

Update

If you want to just update phone numbers for existing records

Field definition file

Each field definition goes on a separate line in the format

<fieldname>[:position]

where position is an ordinal position of the field in the data file. The position is 0-based and can be omitted.

Example employee.fld

Row validation rules file

A row validation rule file is simply a php file that returns an array of rules. You can any of the available Laravel validation rules

Example employee.rule

License

The artisan-io is open-sourced software licensed under the MIT license


All versions of artisan-io with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
illuminate/support Version ~6.0|~7.0|~8.0
illuminate/container Version ~6.0|~7.0|~8.0
illuminate/database Version ~6.0|~7.0|~8.0
illuminate/validation Version ~6.0|~7.0|~8.0
illuminate/config Version ~6.0|~7.0|~8.0
illuminate/console Version ~6.0|~7.0|~8.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 pmatseykanets/artisan-io contains the following files

Loading the files please wait ....