Skip to content

An example PHP application using the client-php package to make calls to OneMusicAPI

Notifications You must be signed in to change notification settings

OneMusicAPI/example-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-php

This is an example of using the PHP client SDK to make queries to OneMusicAPI.

Requirements

PHP 5.5 and later

How it was built

In short, follow the instructions at https://packagist.org/.

When composer is run, the dependencies are downloaded. These include the client-php package itself, and downstream dependencies like a HTTP client.

How to run

  1. Download composer.phar into the root folder of the project.
  2. Run composer to download the dependencies:
php composer.phar install
  1. Inside your code, replace the $user_key variable, inputting your user key sent to you when you signed up.
  2. Test the page!

Points of interest

Currently we only have one example, which queries OneMusicAPI for information about a release given its title and artist.

Notes for developers

Update the dependencies via composer running in Docker:

docker run -it --rm --name php-composer -v "$PWD":/usr/src/myapp -w /usr/src/myapp alexwijn/docker-git-php-composer php composer.phar update

About

An example PHP application using the client-php package to make calls to OneMusicAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages