Download the PHP package marcusyan/laravel-model-from-table without Composer

On this page you can find all versions of the php package marcusyan/laravel-model-from-table. 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-model-from-table

Reliese Laravel

StyleCI Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Reliese Laravel is a collection of Laravel Components which aim is to help the development process of Laravel applications by providing some convenient code-generation capabilities.

How does it work?

This package expects that you are using Laravel 5.1 or above. You will need to import the reliese/laravel package via composer:

Configuration

Add the service provider to your config/app.php file within the providers key:

Configuration for local environment only

If you wish to enable generators only for your local environment, you should install it via composer using the --dev option like this:

Then you'll need to register the provider in app/Providers/AppServiceProvider.php file.

Models

Generating models with artisan

Add the models.php configuration file to your config directory and clear the config cache:

Usage

Assuming you have already configured your database, you are now all set to go.

Customizing Model Scaffolding

To change the scaffolding behaviour you can make config/models.php configuration file fit your database needs. Check it out ;-)

Tips

1. Keeping model changes

You may want to generate your models as often as you change your database. In order not to lose you own model changes, you should set base_files to true in your config/models.php.

When you enable this feature your models will inherit their base configurations from base models. You should avoid adding code to your base models, since you will lose all changes when they are generated again.

Note: You will end up with two models for the same table and you may think it is a horrible idea to have two classes for the same thing. However, it is up to you to decide whether this approach gives value to your project :-)

Support

For the time being, this package only supports MySQL databases. Support for other databases will be added soon.


All versions of laravel-model-from-table with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
doctrine/dbal Version ~2.5
illuminate/support Version ~5.1
illuminate/database Version ~5.1
illuminate/contracts Version ~5.1
illuminate/filesystem Version ~5.1
illuminate/console Version ~5.1
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 marcusyan/laravel-model-from-table contains the following files

Loading the files please wait ....