Download the PHP package denis-kisel/constructor without Composer

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

Constructor

This is package for generate migrations with models and/or Laravel Admin controllers by patterns

Dependence

Installation

Via Composer

Usage

Create Model With Empty Migration

Command: construct:model ModelName

Example
Output

Create Model With Fields

Command: construct:model ModelName [options]
Option: {--fields=}
Field signature: name:type:length{extraMethod:paramValue}
Multi fields and extra methods must separate by comma ,

Example
Output

Create Model With Bind To Locale(Translation)

See Translatable Doc
Command: construct:modelt ModelName [options]
Option: {--fields=}
Field signature: name:type:length{extraMethod:paramValue}[t] Param [t] is optional and denotes translation field
Multi fields and extra methods must separate by comma ,

Example
Output

Create Model With Basic Page Fields

Command: construct:page ModelName [options]

Example
Output

Create Laravel-Admin Controller

See Laravel-Admin Doc
Command: construct:admin ModelName {--fields=}
Field signature: name:type:length{extraMethod:paramValue}
Multi fields and extra methods must separate by comma ,

Example
Output

Options

Option Description
{--fields=} Create model with fields
{--pattern_path=} Path to file with custom fields by pattern
{--i} Ignore exists model or controller
{--m} Run migration
{--a} Create model with laravel-admin controller

Create Model With Fields

Option: {--fields=}
Field signature: name:type:length{extraMethod:paramValue}[t] Param [t] is optional and denotes translation field
Multi fields and extra methods must separate by comma ,

Example

Run Migration

Option: {--m} (migration)

Example

Overwrite Exists Model Or/And Controller

Option: {--i} (ignore)

Example

Create Model With Laravel-Admin Controller

Option: {--a} (admin)

Example

Commands

Command Description
construct:model [options] Create Model
construct:modelt [options] Create Translatable Model (Bind With Locale)
construct:page [options] Create Model With Basics Page Fields: id, code, slug, name, description, title, h1, keywords, meta_description, sort, is_active, timestamps
construct:paget [options] Create Model With Basics Page Fields(Bind With Locale). Page Fields: id, sort, is_active, timestamps. PageTranslation Fields: code, slug, name, description, title, h1, keywords, meta_description
construct:admin [options] Create Laravel Admin Controller
construct:admint [options] Create Translatable Laravel Admin Controller(Bind With Locale)
construct:admin_page [options] Create Laravel Admin Controller With Basics Page Fields. Basic Fields: See construct:page
install:locale [options] Create Locale Model With Laravel Admin Controller. Example: $ php artisan install:locale --a --m

License

This package is open-sourced software licensed under the MIT license

Contact

Developer: Denis Kisel


All versions of constructor with dependencies

PHP Build Version
Package Version
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 denis-kisel/constructor contains the following files

Loading the files please wait ....