dev-master
9999999-devsimple api for take package's informations
The Requires
api package-description
Wallogit.com
2017 © Pedro Peláez
simple api for take package's informations
This API gives informations on a package. It makes it possible to obtain, if the information is indicated: - the name of the package - its version - the language used - dependencies required - if the package is testable - if it is distributable - the license of the project - a short description of the action of the API, (*2)
basic usage for this component, (*3)
Write the vendor's name and the package's name at the end of the URL : www. site .com/ The vendor's name/The package's name, (*4)
If the package and the vendor exist, the API search informations in the differents files and It displays what it found., (*5)
Here is an example with a sebastien bergmann's package :, (*6)
http://ydefarge.alwaysdata.net/sebastianbergmann/phpunit, (*7)
{
"testable": true,
"distribuable": false,
"package": "sebastianbergmann\/phpunit",
"keywords": [
"phpunit",
"xunit",
"testing"
],
"name": "phpunit\/phpunit",
"homepage": "https:\/\/phpunit.de\/",
"license": "BSD-3-Clause",
"author": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
}
],
"description": "The PHP Unit Testing framework.",
"dependencies": {
"php": "^7.0",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"myclabs\/deep-copy": "^1.3",
"phar-io\/manifest": "^1.0.1",
"phar-io\/version": "^1.0",
"phpspec\/prophecy": "^1.7",
"phpunit\/php-code-coverage": "^5.2",
"phpunit\/php-file-iterator": "^1.4",
"phpunit\/php-text-template": "^1.2",
"phpunit\/php-timer": "^1.0.6",
"phpunit\/phpunit-mock-objects": "^4.0",
"sebastian\/comparator": "^2.0",
"sebastian\/diff": "^1.2",
"sebastian\/environment": "^3.0.1",
"sebastian\/exporter": "^3.1",
"sebastian\/global-state": "^1.1 || ^2.0",
"sebastian\/object-enumerator": "^3.0.2",
"sebastian\/resource-operations": "^1.0",
"sebastian\/version": "^2.0"
},
"devDependencies": [],
"version": [],
"language": "php",
"type": "library",
"page": ""
}
The informations have been recuperated which the read of the files package.json or composer.json check, if the code is available on npm or packagist, and travis., (*8)
Yo69008, (*9)
simple api for take package's informations
api package-description