Download the PHP package ise/php-soundcloud without Composer
On this page you can find all versions of the php package ise/php-soundcloud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ise/php-soundcloud
More information about ise/php-soundcloud
Files in ise/php-soundcloud
Package php-soundcloud
Short Description API Wrapper for SoundCloud written in PHP with support for authentication using OAuth 2.0 by Anton Lindqvist (mptre), composer support added by Gary Lockett (ise)
License MIT
Homepage https://github.com/internalsystemerror/php-soundcloud
Informations about the package php-soundcloud
SoundCloud PHP API Wrapper
Introduction
A wrapper for the SoundCloud API written in PHP with support for authentication using OAuth 2.0.
The wrapper got a real overhaul with version 2.0. The current version was written with PEAR in mind and can easily by distributed as a PEAR package.
Requirements
- PHP >= 5.0.0 (with cURL support)
Getting started
Check out the getting started wiki entry for further reference on how to get started. Also make sure to check out the demo application for some example code.
Composer
A version of the library that is PSR-4 compliant and installable via Composer is available on the psr-4 branch. To include it in your projects, include the following in your composer.json
file:
`
The Composer-version of the libray requires PHP >= 5.3 because of the use of namespaces.
The namespaced class names differ from the examples below. For example, to create a new client object with app credentials, instead of:
`
Instead, use:
`
Examples
The wrapper includes convenient methods used to perform HTTP requests on behalf of the authenticated user. Below you'll find a few quick examples.
Of course, you need to handle the authentication first before being able to request and modify protected resources as demonstrated below. Therefore, I refer to the demo application which has some example code on how to handle authentication.
GET
POST
PUT
DELETE
Upload track
Download track
Update playlist
Many found it difficult to update a existing playlist. Therefor a custom method is available to simplify this matter.
Feedback and questions
Found a bug or missing a feature? Don't hesitate to create a new issue here on GitHub.
Also make sure to check out the official documentation and the join Google Group in order to stay updated.
License
Copyright (c) 2011 Anton Lindqvist
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.