PHP code example of neoan3-apps / transformer
1. Go to this page and download the library: Download neoan3-apps/transformer 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/ */
neoan3-apps / transformer example snippets
namespace Neoan3\Model;
use Neoan3\Apps\Transformer;
class SomeModel extends IndexModel
{
static function __callStatic($method, $arguments)
{
$handOff = [$method, $arguments];
return Transformer::addMagic(...$handOff);
}
static function test($some){
var_dump('If function exists in model, it will be executed');
}
}
namespace Neoan3\Model;
class SomeTransformer implements IndexTransformer
{
static function modelStructure()
{
return [
'name' => [
' 'depth' => 'many',
'