1. Go to this page and download the library: Download laminas-api-tools/api-tools 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/ */
'db-connected' => [
/**
* This is sample configuration for a DB-connected service.
* Each such service ish to retrieve it manually later.
*/
'YourDBConnectedResource' => [
'table_service' => 'Optional; if present, this service will be used as the table gateway',
'resource_class' => 'Optional; if present, this class will be used as the db-connected resource',
'table_name' => 'Name of DB table to use',
'identifier_name' => 'Optional; identifier field in table; defaults to table_name_id or id',
'adapter_name' => 'Service Name for DB adapter to use',
'hydrator_name' => 'Service Name for Hydrator to use',
'entity_class' => 'Name of entity class to which to hydrate',
'collection_class' => 'Name of collection class which iterates entities; should be a Paginator extension',
],
],