Download the PHP package makinacorpus/goat-hydrator without Composer

On this page you can find all versions of the php package makinacorpus/goat-hydrator. 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 goat-hydrator

Goat hierachical hydrator

Advanced object hydrator based upon https://github.com/Ocramius/GeneratedHydrator supporting nested object hydration.

Optionnaly Ocramius/GeneratedHydrator can be seamlessly replaced by https://github.com/makinacorpus/generated-hydrator for PHP 5.6 compatibility.

This package provides a Symfony 3.4 and 4.x compatible bundle.

Status

Time has passed, and PHP 5.6 is not supported anywhere anymore, as a consequence this package is not supported anymore.

Please use makinacorpus/generated-hydrator-bundle insetad.

This package may if necessary receive some updates, for bugfixes and security fixes.

Get started

For efficiently hydrating objects, it may benefit from an offline preparation phase that introspects target object classes for later hydration. Using Symfony this preparation phase is done while compiling the container.

Test case scenario

Along this documentation, we will work on this scenario, we have three classes defined as such:

Standalone

Configuration

Simple configuration exemple, more documentation will come later:

Usage

Usage is trivial:

And now, calling print $a->getB()->getBar() . $a->getB()->getC()->getFoo(); should display Hello, World !;

Symfony

Configuration

Add the bundle in your bundles.php file (there is no flex recipe yet):

Use the goat_hydrator configuration key:

Usage

Usage is the same as above, but for convenience you can inject the HydratorMap class into your controllers or services.

Behavior

Each time you call HydratorMap::get() a new instance will be generated: if you iterate over, for example, an SQL result set, always use the same instance: there is caching happening each instance making it faster.


All versions of goat-hydrator with dependencies

PHP Build Version
Package Version
Requires makinacorpus/generated-hydrator Version *
php Version ^5.6 || ^7.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 makinacorpus/goat-hydrator contains the following files

Loading the files please wait ....