Download the PHP package forci/static-data-bundle without Composer

On this page you can find all versions of the php package forci/static-data-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 static-data-bundle

Installation

composer require forci/static-data-bundle

Add the bundle to your bundles array

Configure your bundles. These are the bundles that have StaticData that needs to be imported

The Static Data bundle will look into each bundle's configured directory (StaticData by default) and pick all *Data.php files. Then, if there is a service with an ID equal to the FQCN, or if the class is a subclass of Forci\Bundle\StaticData\StaticData\StaticData, it will be constructed and added to a `Forci\Bundle\StaticData\StaticData\DataCollection. Note, that this only happens on-demand and will NOT slow down your application's performance besides having to load another bundle and process its configs.

Usage

By default, you need to place your StaticData files in BundleRootDir/StaticData. Take a look at the below example for a bundle named App (Please notice the missing Bundle suffix! if you're using it, you need to specify the full bundle name in your config, eg AppBundle)

All you need to do is run the ./bin/console forci_static_data:load command. You can also add this command to your deployment flow. This way, adding new static entities is a breeze. This is especially useful when development happens by multiple developers, in multiple different branches and you want to keep migrations clean. Having multiple branches and doing refactoring in these often leads to unexpected crashes upon deployment to production due to the way DoctrineMigrationsBundle works.

If you would like to import the static data for only one bundle, run ./bin/console forci_static_data:load -b YourBundle or ./bin/console forci_static_data:load --bundle=YourBundle

Advanced Usage

This bundle registers two services:

You can use those to find and/or load your static data in any way you would like - you can embed it in your own commands.


All versions of static-data-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
doctrine/orm Version ~2.9
symfony/framework-bundle Version ~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 forci/static-data-bundle contains the following files

Loading the files please wait ....