Download the PHP package intaro/custom-index-bundle without Composer

On this page you can find all versions of the php package intaro/custom-index-bundle. 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 custom-index-bundle

CustomIndexBundle

The CustomIndexBundle allows create index for doctrine entities using annotation with entity definition and console command.

Installation

CustomIndexBundle requires Symfony 2.1 or higher. Now work only with PostgreSQL.

Run into your project directory:

Register the bundle in AppKernel:

If your project have many schemas in single database and command must generate custom indexes only for one schema then add in your config.yml:

Default value of search_in_all_schemas is true. If you have different entities in different schemas and you need to update custom indexes in all schemas at once then you must set search_in_all_schemas to true or omit this config. If you have database with only public schema then search_in_all_schemas value doesn't matter.

Parameter allowed_index_types helps to exclude some types of indexes. If someone will try to use excluded type, command intaro:doctrine:index:update will return an error.
Default value is ['gin', 'gist', 'btree', 'hash'].

Usage

1) Add annotation in your entity

Available CustomIndex attributes:

Required only columns attribute.

2) Use intaro:doctrine:index:update command for update db.

You may use dump-sql parameter for dump sql with DROP/CRATE INDEX commands

Some annotation examples

Create index using pg_trgm extension:

Create unique index using PostgreSQL functions:

Create partial index:


All versions of custom-index-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
doctrine/orm Version ^2.2.3
symfony/config Version ^2.1 || ^3.0 || ^4.0 || ^5.0 || ^6.0
symfony/console Version ^2.1 || ^3.0 || ^4.0 || ^5.0 || ^6.0
symfony/dependency-injection Version ^2.1 || ^3.0 || ^4.0 || ^5.0 || ^6.0
symfony/http-kernel Version ^2.1 || ^3.0 || ^4.0 || ^5.0 || ^6.0
symfony/validator Version ^2.1 || ^3.0 || ^4.0 || ^5.0 || ^6.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 intaro/custom-index-bundle contains the following files

Loading the files please wait ....