Download the PHP package platformsh/symfonyflex-bridge without Composer

On this page you can find all versions of the php package platformsh/symfonyflex-bridge. 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 symfonyflex-bridge

Archived library: The Symfony Flex Bridge has been archived and is no longer the recommended tool for deployment on Platform.sh. Users should consult the new and official Platform.sh template provided from Symfony and its use of the Symfony configurator script.

Symfony Flex bridge for Platform.sh

This simple bridge library connects a Symfony Flex-based application to Platform.sh. In the typical case it should be completely fire-and-forget.

Symfony Flex expects all configuration to come in through environment variables with specific names in a specific format. Platform.sh provides configuration information as environment variables in a different specific format. This library handles mapping the Platform.sh variables to the format Symfony Flex expects for common values.

Usage

Simply require this package using Composer. When Composer's autoload is included this library will be activated and the environment variables set. As long as that happens before Symfony bootstraps its configuration (which it almost certainly will) everything should work fine with no further user-interaction necessary.

Mappings performed

Elasticsearch

If a Platform.sh relationship named elasticsearch is defined, it will be taken as an Elasticsearch index and mapped to appropriate environment variables. Most Elasticsearch packages for Symfony do not have a standard naming convention for environment variables so you will need to modify your Symfony configuration to read them.

For the common Elastica library, you would add the following to your Symfony config/services.yaml file:

And then you can reference those parameters in your Elastica configuration file:

MongoDB

If a Platform.sh relationship named mongodatabase is defined, it will be taken as a Doctrine ODM database and mapped to the appropriate environment variables. Note that you may still need to reference those environment variables in your configuration if they are not defined by default. See the DoctrineMongoDBBundle documentation for more details.

Generally, placing the following in your doctrine_mongodb.yaml file should be sufficient:

RabbitMQ

If a Platform.sh relationship named rabbitmqqueue is defined, it will be taken as a RabbitMQ messenger backend and mapped to the appropriate environment variable.

Solr

If a Platform.sh relationship named solr is defined, it will be taken as a Solr index and mapped to appropriate environment variables.

For the common uses, you would add the following to your Symfony config/services.yaml file:

And then you can reference those parameters in your configuration file:

Redis Cache

If a Platform.sh relationship named rediscache is defined, it will be taken as a the storage engine for a cache pool.

For typical use you will need to define a file looking like this:

For more details see here

Redis session storage

If a Platform.sh relationship named redissession is defined, it will be taken as a the storage engine for symfony session.

For typical use you will need to add a couple of service definitions which looks like this:

For more details see here


All versions of symfonyflex-bridge with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
platformsh/config-reader Version ^2.4.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 platformsh/symfonyflex-bridge contains the following files

Loading the files please wait ....