PHP code example of phpinnacle / ferry
1. Go to this page and download the library: Download phpinnacle/ferry 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/ */
phpinnacle / ferry example snippets
use PHPinnacle\Ferry\Enums\StructureStatus;
use PHPinnacle\Ferry\Models\Connection;
$connection = Connection::query()
->where('is_active', true)
->where('status', StructureStatus::Ready)
->firstOrFail();
foreach ($connection->publishedMetadata()->get() as $object) {
$object->kind; // PHPinnacle\Rosetta\Enums\MetadataKind
$object->system; // array<string, PHPinnacle\Rosetta\Contracts\Field>
$object->properties; // list<PHPinnacle\Rosetta\Data\MetadataProperty>
$object->values; // list<PHPinnacle\Rosetta\Data\EnumerationValue>
$object->children; // document tabular sections
}
bash
composer vendor:publish --tag="phpinnacle-ferry-migrations"
php artisan migrate