2017 © Pedro Peláez
 

library metadata

Class/method/property metadata management in PHP

image

jms/metadata

Class/method/property metadata management in PHP

  • Monday, July 16, 2018
  • by johannes
  • Repository
  • 9 Watchers
  • 508 Stars
  • 24,377,183 Installations
  • PHP
  • 88 Dependents
  • 0 Suggesters
  • 54 Forks
  • 8 Open issues
  • 15 Versions
  • 6 % Grown

The README.md

Metadata is a library for class/method/property metadata management in PHP

Master (2.x) 1.x
Build status ![Build status][1.x image]
![Coverage Status][Master coverage image] ![Coverage Status][1.x coverage image]

Overview

This library provides some commonly needed base classes for managing metadata for classes, methods and properties. The metadata can come from many different sources (annotations, YAML/XML/PHP configuration files)., (*1)

The metadata classes are used to abstract away that source and provide a common interface for all of them., (*2)

Usage

The library provides three classes that you can extend to add your application specific properties, and flags: ClassMetadata, MethodMetadata, and PropertyMetadata, (*3)

After you have added, your properties in sub-classes, you also need to add DriverInterface implementations which know how to populate these classes from the different metadata sources., (*4)

Finally, you can use the MetadataFactory to retrieve the metadata::, (*5)

<?php

use Metadata\MetadataFactory;
use Metadata\Driver\DriverChain;

$driver = new DriverChain(array(
    /** Annotation, YAML, XML, PHP, ... drivers */
));
$factory = new MetadataFactory($driver);
$metadata = $factory->getMetadataForClass('MyNamespace\MyObject');

The Versions

16/07 2018

dev-master

9999999-dev

Class/method/property metadata management in PHP

  Sources   Download

MIT Apache-2.0

The Requires

  • php ^7.2

 

The Development Requires

by Asmir Mustafic

xml annotations yaml metadata

16/07 2018

dev-cs

dev-cs

Class/method/property metadata management in PHP

  Sources   Download

MIT

The Requires

  • php ^7.2

 

The Development Requires

by Asmir Mustafic

xml annotations yaml metadata

21/05 2018

1.x-dev

1.9999999.9999999.9999999-dev

Class/method/property metadata management in PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Asmir Mustafic

xml annotations yaml metadata

21/05 2018

dev-mit-license

dev-mit-license

Class/method/property metadata management in PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Asmir Mustafic

xml annotations yaml metadata

05/12 2016

1.6.0

1.6.0.0

Class/method/property metadata management in PHP

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

12/12 2014

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

12/07 2014

1.5.1

1.5.1.0

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

06/01 2014

dev-test

dev-test

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

06/11 2013

1.5.0

1.5.0.0

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

13/09 2013

1.4.2

1.4.2.0

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

27/08 2013

1.4.1

1.4.1.0

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

25/08 2013

1.4.0

1.4.0.0

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

22/01 2013

1.3.0

1.3.0.0

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

21/08 2012

1.2.0-RC

1.2.0.0-RC

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

The Development Requires

xml annotations yaml metadata

02/01 2012

1.1.1

1.1.1.0

Class/method/property metadata management in PHP

  Sources   Download

Apache

The Requires

  • php >=5.3.0

 

xml annotations yaml metadata