1. Go to this page and download the library: Download rice/ctl 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/ */
rice / ctl example snippets
class Cat
{
use AutoFillProperties;
use Accessor;
/**
* 眼睛.
*
* @return $this
*
* @throws \Exception
*
* @var string
* @Param $class
*/
protected $eyes;
/**
* @var S
*/
protected $speak;
}
/**
* Class Cat.
* @method self setEyes(string $value)
* @method string getEyes()
* @method self setSpeak(S $value)
* @method S getSpeak()
*/
class Cat
{
use AutoFillProperties;
use Accessor;
/**
* @var string
* @Param $class
*/
protected $eyes;
/**
* @var S
*/
protected $speak;
}
$cat = new \Tests\Entity\Cat();
$cat->getSpeak()->text();
public function getSpeakText(): string
{
return $this->getSpeak()->text();
}
$cat->getSpeakText();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.