2017 © Pedro Peláez
 

library ripple

Get a track/album information from the URL.

image

jamband/ripple

Get a track/album information from the URL.

  • Tuesday, July 24, 2018
  • by jamband
  • Repository
  • 3 Watchers
  • 3 Stars
  • 1,010 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 22 Versions
  • 3 % Grown

The README.md

ripple

Build Status Latest Stable Version Total Downloads, (*1)

Get a track/album information from the URL., (*2)

Requirements

PHP 8.1 or later, (*3)

Installation

composer require jamband/ripple

Usage

// basic
$ripple = new Jamband\Ripple\Ripple();
$ripple->request('https://example.bandcamp.com/track/title');
$ripple->provider(); // Bandcamp
$ripple->url(); // https://example.bandcamp.com/track/title
$ripple->id(); // 123
$ripple->title(); // Title, by Artist
$ripple->image(); // https://img.example.com/img/123.jpg
// embed
$ripple = new Jamband\Ripple\Ripple();
$ripple->options(['embed' => ['Bandcamp' => 'size=large/']]);
$ripple->request('https://example.bandcamp.com/track/title');
$embed = $ripple->embed(); // https://bandcamp.com/EmbeddedPlayer/track=123/size=large/
?>
<iframe width="300" height="300" src="<?= $embed ?>" allow="fullscreen"></iframe>
// custom curl options
$ripple = new Jamband\Ripple\Ripple();
$ripple->options(['curl' => [
    // CURLOPT_TIMEOUT => 8,
    // CURLOPT_USERAGENT => '...',
    // ...
]]);
$ripple->request('https://example.bandcamp.com/track/title');
// mock response
$ripple = new Jamband\Ripple\Ripple();
$ripple->options(['response' => '...']);
$ripple->request('https://example.bandcamp.com/track/title');

Valid URLs

Bandcamp:
https://{subdomain}.bandcamp.com/track/{title}
https://{subdomain}.bandcamp.com/album/{title}
https://{subdomain}.bandcamp.com/releases
https?://{domain}/track/{title}
https?://{domain}/album/{title}
https?://{domain}/releases

SoundCloud:
https://soundcloud.com/{account}/{title}
https://soundcloud.com/{account}/sets/{title}

Vimeo:
https://vimeo.com/{id}

YouTube:
https://www.youtube.com/watch?v={id}
https://www.youtube.com/playlist?list={id}
https://youtu.be/{id}

Supported Providers

  • Bandcamp
  • SoundCloud
  • Vimeo
  • YouTube

License

Ripple is licensed under the MIT license., (*4)

The Versions

24/07 2018

dev-master

9999999-dev https://github.com/jamband/ripple

Get a track/album information from the URL.

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

21/07 2018

v0.5.0

0.5.0.0 https://github.com/jamband/ripple

Get a track/album information from the URL.

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

28/05 2017

v0.4.5

0.4.5.0 https://github.com/jamband/ripple

Get a track/album information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

01/05 2017

v0.4.4

0.4.4.0 https://github.com/jamband/ripple

Get a track/album information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

09/04 2017

v0.4.3

0.4.3.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

17/03 2017

v0.4.2

0.4.2.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

14/03 2017

v0.4.1

0.4.1.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

14/03 2017

v0.4.0

0.4.0.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

03/03 2017

v0.3.2

0.3.2.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

17/12 2016

v0.3.1

0.3.1.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

15/12 2016

v0.3.0

0.3.0.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

14/12 2016

v0.2.0

0.2.0.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

10/06 2016

v0.1.9

0.1.9.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

03/03 2016

v0.1.8

0.1.8.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

11/01 2016

v0.1.7

0.1.7.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

10/01 2016

v0.1.6

0.1.6.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

03/10 2015

v0.1.5

0.1.5.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

20/09 2015

v0.1.4

0.1.4.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

20/09 2015

v0.1.3

0.1.3.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

16/09 2015

v0.1.2

0.1.2.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

16/09 2015

v0.1.1

0.1.1.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp

12/09 2015

v0.1.0

0.1.0.0 https://github.com/jamband/ripple

Get track information from the URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

scraping soundcloud youtube oembed vimeo embed bandcamp