1. Go to this page and download the library: Download activecollab/resistance 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/ */
activecollab / resistance example snippets
namespace My\App\Storage;
use Predis\Client;
use ActiveCollab\Resistance\Storage\Storage;
use ActiveCollab\Resistance\Storage\Field\StringField;
use ActiveCollab\Resistance\Storage\Field\IntegerField;
use ActiveCollab\Resistance\Storage\Field\BooleanField;
/**
* @package ActiveCollab\GrandCentral\Storage
*/
final class MyObjects extends Storage
{
/**
* Construct a new storage instance
*
* @param Client $connection
* @param string $application_namespace
*/
public function __construct(Client &$connection, $application_namespace)
{
parent::__construct($connection, $application_namespace);
$this->setFields([
'url' => (new StringField)->