PHP code example of onurb / doctrine-metadata-grapher
1. Go to this page and download the library: Download onurb/doctrine-metadata-grapher 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/ */
onurb / doctrine-metadata-grapher example snippets
[...]
use Onurb\Doctrine\ORMMetadataGrapher\Mapping as Grapher;
/**
* @Grapher\ShowAttributesProperties
* @ORM\Entity
*/
Class MyEntity
{
//[...]
}
use use Onurb\Doctrine\ORMMetadataGrapher\Mapping as Grapher;
// [...]
/**
* @Grapher\IsDisplayedMethod()
*/
public function myImportantMethod()
{}
use Doctrine\ORM\Mapping as ORM;
use Onurb\Doctrine\ORMMetadataGrapher\Mapping as Grapher;
/**
* @Grapher\Note("My first Entity note")
* @ORM\Entity
*/
class MyEntity{}