1. Go to this page and download the library: Download remithomas/rt-extends 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/ */
public function getInputFilterSpecification()
{
return array(
'datestart' => array(
'\Date\IsLater",
'options' => array(
'min' => date ("d F Y - H:i", mktime()),
'format' => 'd F Y - H:i',
'timezone' => 'Europe/London'
)
)
),
),
);
}
public function getInputFilterSpecification()
{
return array(
'dateend' => array(
'or\Date\IsEarlier",
'options' => array(
'max' => date ("d F Y - H:i", mktime()),
'format' => 'd F Y - H:i',
'timezone' => 'Europe/London'
)
)
),
),
);
}
$uri = "http://www.dailymotion.com/video/x9003r_pac-man-remi-gaillard_fun";
$uri = "http://www.youtube.com/watch?v=1VVkIOxRcX0"; // youtube
$thumbUri = new \RtExtends\Uri\Thumb();
var_dump($thumbUri->getThumbs($uri));
// limit the number of thumbnails
var_dump($thumbUri->getThumbs($uri, 2));
$uri = "http://framework.zend.com/blog/";
$thumbUri = new \RtExtends\Uri\Thumb();
var_dump($thumbUri->getThumb($uri));
$typeUri = new \RtExtends\Uri\Type();
$typeUri->getType("http://www.youtube.com/watch?v=1VVkIOxRcX0"); // return youtube
\RtExtends\Useful\Location\Country\Us::states();
\RtExtends\Useful\Location\Country\Us::statesFIPS(); // FIPS codes
\RtExtends\Useful\Location\Country\Fr::states();
\RtExtends\Useful\Location\Country\De::states();
\RtExtends\Useful\Location\Country\Fr::counties();
\RtExtends\Useful\Location\Country\Fr::countiesStructured(); // by states
\RtExtends\Useful\Location\Country\Us::counties();
\RtExtends\Useful\Location\Country\Us::countiesStructured(); // by states
// simple use : 10 words
echo \RtExtends\Useful\Data\Fake::getWordLoremIpsum(10);
// );
// no random option
echo \RtExtends\Useful\Data\Fake::getWordLoremIpsum(10,"p",array("class"=>"lead"),"!", false);
// no random option but a special line
echo \RtExtends\Useful\Data\Fake::getWordLoremIpsum(10,"p",array("class"=>"lead"),"!", 3);