PHP code example of tavp / tavphub
1. Go to this page and download the library: Download tavp/tavphub 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/ */
tavp / tavphub example snippets
// Define a resource
use Tavp\Hub\Resource;
class UserResource extends Resource
{
protected string $model = 'User';
protected array $columns = ['id', 'name', 'email', 'created_at'];
protected array $form = [
'name' => 'text',
'email' => 'email',
];
}