PHP code example of final-gene / zf-hal-hydrator-module

1. Go to this page and download the library: Download final-gene/zf-hal-hydrator-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

final-gene / zf-hal-hydrator-module example snippets


'zf-hal' => [
    'renderer' => [
        'default_hydrator' => 'FinalGene\ZfHalHydratorModule\RestEntityHydrator'
    ]
],

'map' => [
    'FinalGene\FooModule\Rest\Entity\BarEntity' => 'final-gene:foo-bar'
]

'service_manager' => [
    'factories' => [
        'FinalGene\ZfHalHydratorModule\ModuleOptions' => 'FinalGene\ZfHalHydratorModule\Options\ModuleOptionsFactory'
    ],
],
'hydrators' => [
    'factories' => [
        'FinalGene\ZfHalHydratorModule\RestEntityHydrator' => 'FinalGene\ZfHalHydratorModule\Hydrator\HalEntityHydratorFactory'
    ],
],