Download the PHP package davidepastore/paris-model-generator without Composer

On this page you can find all versions of the php package davidepastore/paris-model-generator. 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 paris-model-generator

paris-model-generator

Paris model generator from database.

Installation

Using command line

Editing composer.json

Require this generator:

Setup

You have to setup your application to be sure that the generated classes will be in the right place and with the right namespace. paris-model-generator uses composer.json extra property to put its configuration:

namespace

It is the namespace in which all classes will be generated. It will be also used to create the folder structure to be PSR-4 compliant.

destination-folder

It is the folder in which all files (and folder structure) will be generated.

Usage

Be sure to be in the base directory of the project (where you have your composer.json file) and run:

The generator will ask you information about the database, to be sure to connect to it and to retrieve the list of tables. The list of the supported drivers could be found here.

force option

The --force option will not ask you confirmation to overwrite existing files.

Include generated files

You have two chances:

PSR-4 autoload

If your namespace property is set you can use psr-4 composer autoload:

Don't forget to set Model::$auto_prefix_models to be sure that your model is recognized properly when you use Model::factory method:

Classmap autoload

If your namespace property is empty or not set, you have to autoload using:

Issues

If you have issues, just open one here.


All versions of paris-model-generator with dependencies

PHP Build Version
Package Version
Requires doctrine/dbal Version 2.4
symfony/console Version ~2.6
zendframework/zend-code 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 davidepastore/paris-model-generator contains the following files

Loading the files please wait ....