1. Go to this page and download the library: Download kcs/metadata 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/ */
kcs / metadata example snippets
use Kcs\Metadata\ClassMetadataInterface;
use Kcs\Metadata\Factory\MetadataFactoryInterface;
class Factory implements MetadataFactoryInterface
{
public function getMetadataFor($class): ClassMetadataInterface
{
...
}
}
use Kcs\Metadata\ClassMetadataInterface;
use Kcs\Metadata\Factory\AbstractMetadataFactory;
class Factory extends AbstractMetadataFactory
{
protected function createMetadata(\ReflectionClass $class): ClassMetadataInterface
{
return new MyClassMetadata($class);
}
}
use Kcs\Metadata\Loader\LoaderInterface;
class Loader implements LoaderInterface
{
public function loadClassMetadata(ClassMetadataInterface $classMetadata)
{
...
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.