PHP code example of tacone / datasource

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

    

tacone / datasource example snippets


$source = new DataSource(new Customer());
$source['name'] = 'Frank';
$source['surname'] = 'Sinatra';
$source['details.email'] = '[email protected]';
$source['details.twitter'] = '@therealfrankie';

$source->save();