Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via composer

jms/metadata 2.8.0

Class/method/property metadata management in PHP
Package summary
Share
0
issues
1
license
1
MIT
Package created
6 Nov 2011
Version published
15 Feb 2023
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
jms/metadata@2.8.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of jms/metadata 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does jms/metadata do?

The jms/metadata is a powerful library for class, method, and property metadata management in PHP. The library provides base classes for managing metadata that can come from various sources, such as annotations and configuration files in YAML, XML, or PHP. By abstracting these sources, jms/metadata provides a unified interface for them, making metadata management simple and straightforward for developers.

How do you use jms/metadata?

To use jms/metadata in your PHP project, start by extending the ClassMetadata, MethodMetadata, and PropertyMetadata classes provided by the library, adding your application-specific properties and flags. Then, add DriverInterface implementations that know how to populate these classes from your chosen metadata sources.

To retrieve the metadata, create an instance of MetadataFactory using your chosen drivers, and call the getMetadataForClass method, passing the name of your class as an argument.

Here's an example:

<?php
    
use Metadata\MetadataFactory;
use Metadata\Driver\DriverChain;

// Add your chosen drivers here.
$driver = new DriverChain([
    // Annotation, YAML, XML, PHP, ... drivers
]);

$factory = new MetadataFactory($driver);

// Retrieve the metadata for your class.
$metadata = $factory->getMetadataForClass('MyNamespace\MyObject');

Remember to replace 'MyNamespace\MyObject' with the actual name of your class.

Where are the jms/metadata docs?

The JMS/Metadata library documentation, along with other resources and details, can be accessed from its official GitHub repository at https://github.com/schmittjoh/metadata. However, the README is currently the primary source of documentation. It provides an overview of the library, usage instructions, and links to the library's Travis CI and Scrutinizer CI pages, where you can find additional information about build status and code coverage. If you need more details or have questions about the library, the Issues tab of the GitHub repository is a useful place to start.