PHP code example of ozankurt / fluent

1. Go to this page and download the library: Download ozankurt/fluent 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/ */

    

ozankurt / fluent example snippets


use OzanKurt\Fluent\Fluent;

class MyObject extends Fluent {}

$object = new MyObject([
    'name' => 'Car',
    'color' => 'green',
]);

$object->speed(200)->passengers([
    ['name' => 'John Doe'],
    ['name' => 'Jane Doe'],
]);