1. Go to this page and download the library: Download aedart/util 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/ */
aedart / util example snippets
use \Aedart\Util\Contracts\Collections\PartialCollection;
use Aedart\Util\Traits\Collections\PartialCollectionTrait;
class MyCollection implements PartialCollection
{
use PartialCollectionTrait;
public function put($key, $value)
{
if(!is_int($value)){
throw new \Exception(sprintf('Value must be of the type integer, %s given', var_export($value, true)));
}
$this->getInternalCollection()->put($key, $value);
}
public function populate(array $data = []) : void
{
// ... Implementation not shown here ...
}
public function offsetExists($offset)
{
// ... Implementation not shown here ...
}
public function offsetGet($offset)
{
// ... Implementation not shown here ...
}
public function offsetSet($offset, $value)
{
// ... Implementation not shown here ...
}
public function offsetUnset($offset)
{
// ... Implementation not shown here ...
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.