Download the PHP package elxdigital/gerador without Composer

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

🚀 Gerador de Código CLI – elxdigital/gerador

Este pacote é um conjunto de comandos CLI em PHP para acelerar a criação de estruturas de banco de dados e cadastros a partir de arquivos .php com campos HTML dinâmicos (data-field-name).

Ele é ideal para projetos institucionais estruturados em PHP + MVC.


📦 Instalação

Adicione ao seu projeto via Composer:


⚙️ Requisitos


🛠️ Comandos disponíveis

🔹 map:views

Mapeia os arquivos .php em themes/{CONF_VIEW_THEME}/, ignorando error.php e _theme.php.


🔹 read:fields

Lê os arquivos .php mapeados e identifica as tags HTML com data-field-name.
Gera:

🧩 Tipos reconhecidos (data-field-type)

HTML / data-field-type Tipo SQL gerado
textarea, mce TEXT DEFAULT NULL
text, varchar VARCHAR(255) DEFAULT NULL
int INT(11) UNSIGNED DEFAULT NULL
date DATE DEFAULT NULL
timestamp TIMESTAMP NULL DEFAULT NULL
foreign INT(11) UNSIGNED DEFAULT NULL + FOREIGN KEY (requer data-table-ref)

🔹 create:model

Gera o arquivo Model em source/Models/ baseado nos campos detectados, com docblocks e construtor padrão.
A classe gerada se chama PaginaNomeDaPagina e a tabela pagina_nome_da_pagina.


🔹 create:controller

Gera o Controller com os métodos:

A classe gerada se chama PaginaNomeDaPagina e vai para source/App/Admin/.


🔹 create:view

Gera a view padrão (themes/admin/widgets/{menu}/{funcao}/{funcao}.php) contendo os campos dinâmicos.
Cada campo usa o tipo correto de input, textarea, mce, etc.


🔹 create:routes

Gera o bloco de rotas em storage/rotas.php para ser copiado para o index.php:


🔹 db:apply

Aplica os arquivos storage/tabelas.sql e storage/inserts.sql no banco de dados atual.

Configure via .env:


🔹 generate:all

Executa os seguintes comandos em sequência:

  1. map:views
  2. read:fields
  3. create:model
  4. create:controller
  5. create:view
  6. create:routes
  7. db:apply

✅ Estrutura esperada


All versions of gerador with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
vlucas/phpdotenv Version ^5.6
ext-dom Version *
ext-libxml Version *
ext-pdo 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 elxdigital/gerador contains the following files

Loading the files please wait ...