• Stars
    star
    1,790
  • Rank 25,957 (Top 0.6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 13 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Metadata is a library for metadata management in PHP

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

Master (2.x) 1.x
Build status Build status
Coverage Status Coverage Status

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).

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

Usage

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

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.

Finally, you can use the MetadataFactory to retrieve the metadata::

<?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');

More Repositories

1

php-option

Option Type for PHP
PHP
2,598
star
2

serializer

Library for (de-)serializing data of any complexity (supports JSON, and XML)
PHP
2,325
star
3

JMSSerializerBundle

Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
PHP
1,800
star
4

php-collection

General Purpose Collection Library for PHP
PHP
975
star
5

parser-lib

Library for Writing Recursive-Descent Parsers
PHP
835
star
6

JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
PHP
427
star
7

JMSI18nRoutingBundle

Allows you to internationalize your routing
PHP
358
star
8

twig.js

twig.js, flexible, secure, and high-performance templating engine for Javascript
PHP
357
star
9

JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
PHP
335
star
10

JMSDiExtraBundle

Provides Advanced Dependency Injection Features for Symfony2
PHP
330
star
11

JMSSecurityExtraBundle

Enhances the Symfony2 Security Component with several new features
PHP
255
star
12

JMSAopBundle

Adds AOP capabilities to Symfony
PHP
200
star
13

JMSPaymentCoreBundle

A unified API for processing payments with Symfony
PHP
194
star
14

JMSDebuggingBundle

This bundle provides advanced debugging tools for your Symfony2 project.
PHP
161
star
15

cg-library

Provides a toolset for generating PHP code
PHP
157
star
16

JMSPaymentPaypalBundle

Payment Bundle providing access to the PayPal API
PHP
122
star
17

php-manipulator

Library for Analyzing and Modifying PHP Source Code
PHP
106
star
18

JMSTwigJsBundle

Integrates twig.js into your Symfony2 application
PHP
79
star
19

composer-deps-analyzer

Library for Analyzing Dependencies of composer projects
PHP
59
star
20

php-stubs

Stubs for PHP core and third-party extensions for auto-completion, or static analysis
PHP
58
star
21

object-routing

Library for generating routes based on objects.
PHP
56
star
22

JMSCommandBundle

Provides useful commands to ease development with Symfony2.
PHP
43
star
23

php-code-analysis

Advanced Code Analysis for PHP
24
star
24

JMSGoogleClosureBundle

Eases development with the Google Closure Tools in Symfony2
JavaScript
21
star
25

jmsPaymentPlugin

A payment plugin for the symfony framework based on Doctrine 1.2
PHP
10
star
26

build-artifact-uploader

Uploads Build Artifacts from a CI Server (such as Travis)
PHP
4
star
27

JMSRstBundle

This bundle is not intended for re-use. Use at your own risk.
PHP
3
star
28

php-debugger

not ready yet
PHP
3
star
29

JMSFormExtraBundle

This bundle is not intended for re-use. Use at your own risk.
PHP
3
star
30

jmsFormsPlugin

This plugin provides several enhancements to symfony's form framework.
PHP
3
star
31

plovr

This is only a fork since the original project is not hosted on GitHub, see its official homepage
JavaScript
2
star
32

jmsDoctrinePlugin

Provides some useful templates for Doctrine 1.2, and some enhancements overall
PHP
2
star
33

JMSSupportBundle

This bundle is not intended for re-use. Use at your own risk.
PHP
1
star
34

commons.js

JavaScript
1
star
35

JMSCrmBundle

This bundle is not intended for re-use. Use at your own risk.
PHP
1
star
36

JMSAwsBundle

This bundle is not intended for re-use. Use at your own risk.
PHP
1
star
37

JMSSocialBundle

This bundle is not intended for re-use. Use at your own risk.
PHP
1
star