https://github.com/lefuturiste/npm-api
Search or get a npm package
https://github.com/lefuturiste/npm-api
api data npm php
Last synced: about 1 month ago
JSON representation
Search or get a npm package
- Host: GitHub
- URL: https://github.com/lefuturiste/npm-api
- Owner: lefuturiste
- Created: 2018-06-22T20:12:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-29T22:14:44.000Z (almost 8 years ago)
- Last Synced: 2025-01-12T05:28:41.351Z (over 1 year ago)
- Topics: api, data, npm, php
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# npm-api
Search or get a npm package
## Quick installation
- Clone this repository
- Do a `composer install` to install dependencies
- Create a .env file and add environments variables from .env.example file
- Point your favorite web server (nginx is better) to `index.php` in `public` directory for nginx you can use `nginx-example.conf` file
- And done!
## Usage
Return json result, and support cors headers
GET /search?query=mypackage : Search for a package
GET /package/mypackage : Get informations about a package
## Live demo
Endpoint at: `https://npm-api.lefuturiste.fr`