PHP code example of necromant2005 / tt-provider

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

    

necromant2005 / tt-provider example snippets


use TweeProvider\Data;
class Book
{
   use Data\PropertyTrait, Data\ConstructTrait, Data\SetterGetterTrait;
}

$book = new Book(array(
    'name' => 'Alice in Wonderland',
));
$book->author = 'Lewis Carroll';

echo $book->name; // Alice in Wonderland
echo $book->author; // Lewis Carroll
bash
$ php composer.phar update