Download the PHP package umbrellio/laravel-pg-extensions without Composer

On this page you can find all versions of the php package umbrellio/laravel-pg-extensions. 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-pg-extensions

Laravel PG extensions

Github Status Coverage Status Latest Stable Version Total Downloads Code Intelligence Status Build Status Code Coverage Scrutinizer Code Quality

This project extends Laravel's database layer to allow use specific Postgres features without raw queries.

Installation

Run this command to install:

Features

Extended table creation

Example:

Extended Schema USING

Example:

Create views

Example:

Get foreign keys

Example:

Extended unique indexes creation

Example:

If you want to delete partial unique index, use this method:

$table->dropUnique() doesn't work for Partial Unique Indexes, because PostgreSQL doesn't define a partial (ie conditional) UNIQUE constraint. If you try to delete such a Partial Unique Index you will get an error.

When you create a unique index without conditions, PostgresSQL will create Unique Constraint automatically for you, and when you try to delete such an index, Constraint will be deleted first, then Unique Index.

Exclude constraints creation

Using the example below:

An Exclude Constraint will be generated for your table:

Check constraints creation

Using the example below:

An Check Constraint will be generated for your table:

Partitions

Support for attaching and detaching partitions.

Example:

Check existing index

Numeric column type

Unlike standard laravel decimal type, this type can be with variable precision

Custom Extensions

1). Create a repository for your extension.

2). Add this package as a dependency in composer.

3). Inherit the classes you intend to extend from abstract classes with namespace: namespace Umbrellio\Postgres\Extensions

4). Implement extension methods in closures, example:

5). Create Extension class and mix these methods using the following syntax, ex:

6). Register your Extension in ServiceProvider and put in config/app.php, ex:

TODO features

License

Released under MIT License.

Authors

Created by Vitaliy Lazeev & Korben Dallas.

Contributing

Supported by Umbrellio


All versions of laravel-pg-extensions with dependencies

PHP Build Version
Package Version
Requires ext-pdo Version *
php Version ^8.3|^8.4
doctrine/dbal Version 3.6.*
laravel/framework Version ^11.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 umbrellio/laravel-pg-extensions contains the following files

Loading the files please wait ....