Download the PHP package coresuit/migration-gen-laravel without Composer

On this page you can find all versions of the php package coresuit/migration-gen-laravel. 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 migration-gen-laravel

CoreSuit Migration Gen (Laravel)

Gerador de Migration + Model + Repository/Interface + Service/Interface + Requests + Controller com injeção automática de Rotas e Providers para projetos Laravel — no estilo CoreSuit.

Compatível com Laravel 11/12+ e PHP >= 8.2


Sumário


Instalação no seu projeto (consumidor)

Pré-requisitos: Projeto Laravel com Composer configurado.

Instale a versão estável mais recente:

Ou uma faixa específica (ex.: série 1.3):

Se (temporariamente) você precisa testar a branch de desenvolvimento:

Não recomendado para produção.


Primeiros passos (init)

Antes de gerar entidades, execute o init para preparar bases de Repository/Service/DTO/Requests/Controller, registrar Providers, criar OpenAPI bootstrap e rota de health.

O que o init faz:

Swagger (opcional): para documentação da API com L5 Swagger


Como gerar uma entidade

Exemplo criando Pedido com campos e relacionamentos:

Depois, aplique a migration:

O que é criado


Sintaxe de campos (--fields)

Formato: nome:type:required, separados por vírgula.

Exemplo completo:

Regra especial: campos que terminam com _id

Impactos por tipo:


Arquivos e estrutura gerada


Customização com stubs e namespaces

Você pode apontar stubs personalizados e alterar namespaces/diretórios:

Flags úteis: --no-migration, --no-model, --no-repo, --no-service, --no-requests, --no-controller, --no-routes, --no-providers, --force.


Injeção de rotas e providers

Rotas (em routes/api.php) com grupo de middleware (default auth.jwt) e marcador:

Providers: binds injetados em RepositoryServiceProvider e ServicesServiceProvider abaixo do marcador // [coresuit_providers].


Comandos disponíveis

Ajuda rápida:


Como usar o pacote em outro projeto Laravel

  1. Instale o pacote:

  2. Execute o init (uma vez por projeto):

  3. Gere entidades conforme necessidade:

  4. Customize (opcional): publique stubs para editar templates

Como publicar uma nova versão no Packagist (maintainer)

Para o mantenedor do pacote.

  1. Garanta commits na master:

  2. Crie a tag semântica e envie:

  3. Atualize no Packagist:
    • Manual: botão Update na página do pacote; ou
    • Automático (recomendado): Configure um webhook no GitHub
      • Settings → Webhooks → Add webhook
      • Payload URL: https://packagist.org/api/github
      • Content type: application/json
      • Events: Just the push event

Importante: evite manter "version" no composer.json. Deixe o Packagist inferir a versão pela tag.
Se optar por manter "version", ela deve ser exatamente igual à tag (ex.: 1.3.0).

Corrigir tag equivocada:


Boas práticas de versionamento


Solução de problemas (FAQ)

“Could not find a version matching your minimum-stability (stable)”

“Some tags were ignored because of a version mismatch in composer.json”

“Not auto-updated” no Packagist

“tag already exists” ao criar nova tag

coresuit:make-entity acusa que init não foi executado


Licença

MIT — ver LICENSE.


All versions of migration-gen-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/console Version ^12.0
illuminate/support Version ^12.0
illuminate/filesystem Version ^12.0
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 coresuit/migration-gen-laravel contains the following files

Loading the files please wait ...