PHP code example of imoisey / cross

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

    

imoisey / cross example snippets


use Imoisey\Cross\Provider\ProviderInterface;

class PeopleProvider implements ProviderInterface
{

    public function getCollections()
    {

    }


    public function getName()
    {

    }
}

use Imoisey\Cross\Collection\Collection;

class PeopleCollection extends Collection
{

}

use Imoisey\Cross\ItemInterface;

class EventItem extends ItemInterface
{
    public function getPeriod()
    {

    }
}

use Imoisey\Cross\Manager;

$provider = new PeopleProvider();
$manager = new Manager($provider);

if ($manager->verify()) {
    $manager->getCollision();
}