Download the PHP package vi-kon/laravel-db-exporter without Composer

On this page you can find all versions of the php package vi-kon/laravel-db-exporter. 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-db-exporter

Database exporter to Laravel 5

This is database table structure and data exporter to migration and seed files for Laravel 5

Table of content

Features


Back to top

Installation

Base

To composer.json file add following lines:

Or run following command in project root:

In Laravel 5 project add following lines to app.php:

Configuration and migration

Installing configuration and migration files simple run:


Back to top

Configuration

Configuration files help set up default values for commands.


Back to top

Usages

Note: Generated files may need some auto-formatting.

Creating migration files

The db-exporter:migrate command is used for creating migration files from database. It has several options:

Note: Model path given by migration.path config key have to be writable by PHP to generate models.

The example assumes following database tables:

Exports all tables from default database:

The above command will generate following files into {PROJECT ROOT}/database/migrations directory:

Note: Table names and column names are converted to snake cased.


Back to top

Creating models

The db-exporter:models command is used for creating models from database. It has several options:

Note: Some situation foreign methods name can match in models, so manual renaming is needed.

Note: In some cases relation guess (One to One, Many to One, One to Many) can generate same method names in single class.

Note: Model path given by model.path config key have to be writable by PHP to generate models.

Creating models from default database:

Creating seed files

The db-exporter:seed command is used for creating seeds from database data. It has several options:

Note: Seed path given by seed.path config key have to be writable by PHP to generate seed classes.

Creating seed files from default database:


Back to top

License

This package is licensed under the MIT License


Back to top


All versions of laravel-db-exporter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version ~5.0
doctrine/dbal Version ~2.3
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 vi-kon/laravel-db-exporter contains the following files

Loading the files please wait ....