Download the PHP package modul-is/generator without Composer

On this page you can find all versions of the php package modul-is/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 generator

Generator

Simple command line interface for generating php classes from mysql table

Installation

Install via composer.json, do not forget to add composer handle to project's composer.json

"scripts":
{
    "post-install-cmd": [
        "ModulIS\\Generator\\ComposerHandler::copy"
    ],
    "post-update-cmd": [
        "ModulIS\\Generator\\ComposerHandler::copy"
    ]
}

Setup

Nothing else to setup, except local.neon - used as source for database

How to use

Once you install extension, open vendor\bin directory in cmd(powershell requires .\ before command -> .\generate) There is no need to register factories or repository, all is done automatically

generate <mysql_table> [--module=<module_name>] [--type=<type>] [--db=<database>]

generate

generate => command to start generating

mysql_table

mysql_table => table name which will be used for php classes generating

module_name

module_name => name under which module new classes will be generated to, default is AdminModule

type

type => decides which files will be generated, default is all

database

database => decides which database from local.neon will be used

What is generated

Entity

Namespace, class, properties, functions to return new datetime object instead of string for date and datetime columns

Repository

Namespace, class, table and entity property, overridden getBy and getByID

Form

Namespace, class, repository, properties, attached(with checks), form, formSuccess

Grid

Namespace, class, grid, handles, editForm

Presenter

Factory inject, createComponent function, actionFormEdit

Template

Latte template with control component

Dials

Namespace, class, constants, functions - constants and translation needs to be changed


All versions of generator with dependencies

PHP Build Version
Package Version
Requires nette/database Version ^3
nette/neon Version ^3
nette/utils Version ^3
nette/finder Version ^2
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 modul-is/generator contains the following files

Loading the files please wait ....