1. Go to this page and download the library: Download tyam/fadoc 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/ */
tyam / fadoc example snippets
class Point {
private $x, y;
public function __construct(int $x, int $y) {...}
}
class Circle {
private $c, $r;
public function __construct(Point $c, int $r) {...}
public function intersects(Circle $another): bool {...}
}
$form = ['another' => [
'c' => ['x' => '0', 'y' => '20'],
'r' => '10'
]];
$c = new tyam\fadoc\Converter();
$condition = $c->objectize(['my\domain\Circle', 'intersects'], $form);
if ($condition->isFine()) {
list($another) = $condition->get();
$result = $myCircle->intersects($another);
} else {
// validation error...
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.