Download the PHP package aldoggutierrez/laravel-schema-manager without Composer

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

Laravel Schema Manager

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Manage PostgreSQL schemas in Laravel applications with ease. Move tables between schemas while preserving foreign keys and relationships. Generate versioned schema migrations and dump the full database schema to a SQL file.

Installation

You can install the package via composer:

Configuration

Publish the configuration file:

Available options in config/schema-manager.php:

These are the contents of the published config file:

Usage

Move a table between schemas

List tables in schemas

Generate a schema migration

Creates a versioned migration file that moves a table between schemas using ALTER TABLE … SET SCHEMA. The generated migration also handles any sequences attached to the table.

The generated file is placed in database/migrations/ with a timestamped name such as 2024_01_01_120000_move_orders_from_external_to_public.php. It contains both up() and down() methods so the move is fully reversible.

Dump the database schema

Exports the PostgreSQL schema (DDL) for one or more schemas to a SQL file using pg_dump. Useful for keeping a schema snapshot in version control and for seeding fresh environments without running every historical migration.

Requires pg_dump to be installed and accessible on $PATH.

Options

Option Default Description
--database pgsql Laravel database connection to use
--schemas connection search_path or public Comma-separated list of schemas to dump
--path database/schema/{connection}-schema.sql Output file path
--prune Delete all files in database/migrations/ after the dump

The command writes two sections to the output file:

  1. Schema-only DDL (pg_dump --schema-only) for all requested schemas.
  2. Data rows from the migrations table so Laravel knows which migrations have already been run.

Features

✅ Move tables between PostgreSQL schemas ✅ Automatically handles foreign key constraints ✅ Preserves all relationships (ON UPDATE/DELETE rules) ✅ Cross-schema foreign key support ✅ Dry-run mode to preview changes ✅ Transaction-based for safety ✅ List tables and schemas ✅ Generate reversible schema migration files ✅ Dump the full schema (DDL + migrations data) to a SQL file

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-schema-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^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 aldoggutierrez/laravel-schema-manager contains the following files

Loading the files please wait ...