1. Go to this page and download the library: Download vented/vented-laravel 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/ */
vented / vented-laravel example snippets
use Vented\Data\StoreProjectData;
use Vented\Vented;
final class SyncProjects
{
public function __construct(private Vented $vented) {}
public function __invoke(): void
{
$projects = $this->vented->projects()->list();
foreach ($projects->data as $project) {
// $project is a generated ProjectData instance.
}
$this->vented->projects()->create(new StoreProjectData(
name: 'Production',
location_id: 'location-id',
));
}
}
use Vented\Facades\Vented;
$result = Vented::projects()->find('project-id');
$rawResponse = $result->response;