Download the PHP package alberto255345/schema-differ without Composer

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

Schema Differ

Latest Version

O Schema Differ é um framework para gerar migrations de diff que comparam o schema esperado (definido por suas migrations ou entidades) com o schema atual do banco de dados. Ele automatiza a criação de migrations com os métodos up e down para sincronizar o banco de dados conforme as alterações detectadas, facilitando a manutenção e evolução do seu sistema.

Recursos

Estrutura do Pacote

Instalação

Via Packagist

Adicione o pacote ao seu projeto Laravel utilizando o Composer:

Configuração para Laravel

Se o seu projeto Laravel não estiver usando o auto-discovery, adicione o Service Provider manualmente no arquivo config/app.php:

Uso

Executando o Comando Artisan

O pacote registra o comando Artisan diff:migration. Para gerar a migration que reflete a diferença entre o schema esperado e o atual, execute:

Esse comando realizará os seguintes passos:

  1. Instanciará a classe SchemaDiffer, que compara o schema atual (exemplo fictício) com o schema esperado.
  2. Gerará o conteúdo da migration com os métodos up e down.
  3. Criará um arquivo de migration na pasta database/migrations com um nome baseado em timestamp (ex.: 2025_02_11_123456_diff_migration_generated.php).

Detalhes Técnicos

Atualizando o Pacote

Após realizar alterações no seu pacote, siga estes passos para atualizar a versão no GitHub e no Packagist:

  1. Atualize o composer.json (opcional):
    Atualize a chave "version" se desejar (por exemplo, "version": "1.0.2").

  2. Commit e Push:

  3. Crie uma Tag no Git:

  4. Packagist:
    Se o webhook estiver configurado, o Packagist atualizará automaticamente. Caso contrário, acesse a página do pacote no Packagist e clique em "Update" para forçar a atualização.

Problemas Comuns

Contribuição

Contribuições são muito bem-vindas! Abra issues ou envie pull requests para ajudar a melhorar o pacote.

Licença

Este projeto está licenciado sob a Licença MIT.

Contato

Em caso de dúvidas ou sugestões, abra uma issue em GitHub Issues.


All versions of schema-differ with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/database Version ^8.0 || ^9.0 || ^10.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 alberto255345/schema-differ contains the following files

Loading the files please wait ....