A Java API for the PHP dependency manager Composer and it's main repository packagist.org.
See the tests for usage details.
An example implementation can be found in the Eclipse Composer Plugin
<dependencies>
<dependency>
<groupId>com.dubture</groupId>
<artifactId>composer-java-api</artifactId>
<version>0.0.3</version>
</dependency>
</dependencies>
A file containing a package or a repository.
Contains multiple packages.
-
PackageRepository
Schema: n/a
Example: https://packagist.org/packages/gossi/ldap.json -
ComposerRepository
Schema: n/a
Example: https://packagist.org/p/packages-2011.json -
VcsRepository, GitRepository, SubversionRepository, MercurialRepository
Schema: http://getcomposer.org/doc/05-repositories.md#vcs
Example: http://getcomposer.org/doc/05-repositories.md#vcs -
PearRepository
Schema: http://getcomposer.org/doc/05-repositories.md#pear
Example: http://getcomposer.org/doc/05-repositories.md#pear
Contains a single package may have different versions.
-
ComposerPackage
Schema: http://getcomposer.org/doc/04-schema.md -
RepositoryPackage
Schema: n/a
Example:package
in https://packagist.org/packages/gossi/ldap.json
Every objects or key value pairs as long as they can be grouped in a collection (see below).
"require": {
"php": ">=5.3.0",
"monolog/monolog": "1.0"
}
Each require entry is an entity (key-value pair).
"auhtors": [
{
"name": "gossi"
},
{
"name": "Robert Gründler"
}
]
Each entry in the authors is an entity.
Entities of the same type under the same parent.
Single key value pairs, that aren't entities.
{
"name": "gossi/ldap"
}
The name property