Download the PHP package efureev/laravel-support-db without Composer

On this page you can find all versions of the php package efureev/laravel-support-db. 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-support-db

PHP Laravel Database Support

Codacy Badge PHP Database Laravel Package Latest Stable Version Total Downloads Maintainability Test Coverage

Description

Install

Contents

Ext Column Types

Bit

Bit String. Doc.

Geo Point

Points are the fundamental two-dimensional building block for geometric types. Doc.

Geo Path

Paths are represented by lists of connected points. Doc.

IP Network

The IP network datatype stores an IP network in CIDR notation. Doc.

IPv4 = 7 bytes
IPv6 = 19 bytes

Ranges

The range data types store a range of values with optional start and end values. They can be used e.g. to describe the duration a meeting room is booked. Doc.

UUID

The primaryUUID can be used to store UUID-type as primary key.

The generateUUID can be used to store UUID-type with/without index (or FK).

On a row creating generates a value with uuid_generate_v4() by extension uuid-ossp.

XML

The xml data type can be used to store an XML document. Doc.

Array of UUID

The array of UUID data type can be used to store an array of IDs (uuid type).

Array of Integer

The array of integer data type can be used to store a list of integers.

Array of Text

The array of text data type can be used to store a list of string.

Column Options

Compression

PostgreSQL 14 introduced the possibility to specify the compression method for toast-able data types. You can choose between the default method pglz, the recently added lz4 algorithm and the value default to use the server default setting. Doc.

Views

Create views

Dropping views

Indexes

Partial indexes

See: https://www.postgresql.org/docs/current/indexes-partial.html

Example:

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

Unique Partial indexes

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.

Extended Schema

Create like another table

Create a table from a source-table. Creates a structure only.
includingAll copies all dependencies from source-table.

Creating will be without a data.

Create as another table with full data

Copy a table from a source-table. Copy only columns and a data. Without indexes and so on...

Create as another table with data from select query

Create a table from a select query. Copy only columns and a data. Without indexes and so on...

Drop Cascade If Exists

Automatically drop objects that depend on the table (such as views, indexes, seqs), and in turn all objects that depend on those objects.

Extended Query Builder

Update records and return updated records` columns

Delete records and return deleted records` columns

Extensions

Create Extensions

The Schema facade supports the creation of extensions with the createExtension and createExtensionIfNotExists methods:

Dropping Extensions

To remove extensions, you may use the dropExtensionIfExists methods provided by the Schema facade:

You may drop many extensions at once by passing multiple extension names:


Usage

Simple example

Test


All versions of laravel-support-db with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
ext-pdo Version *
illuminate/database 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 efureev/laravel-support-db contains the following files

Loading the files please wait ....