PHPackages                             lanarea/splrequest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lanarea/splrequest

AbandonedArchivedLibrary

lanarea/splrequest
==================

A clean request script for use with Station Playlist

3101PHP

Since Jan 2Pushed 6y ago3 watchersCompare

[ Source](https://github.com/LANarea/SPLRequest)[ Packagist](https://packagist.org/packages/lanarea/splrequest)[ RSS](/packages/lanarea-splrequest/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

[SPLRequest](https://github.com/LANarea/SPLRequest)
===================================================

[](#splrequest)

\[DEPRECATED\] Moved to [OrigamiVision/StationPlaylist](https://github.com/OrigamiVision/StationPlaylist)

[![Join the chat at https://gitter.im/LANarea/SPLRequest](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/LANarea/SPLRequest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

SPLRequest is a very small PHP library which makes it able to connect with StationPlaylist Studio, loading all available songs in the library and even do live song requests to the server.

You can obtain the latest version from our [GitHub repository](https://github.com/LANarea/SPLRequest)or install it via Composer:

```
composer require lanarea/splrequest

```

or manually add it to composer.json:

```
{
    "require": {
        "lanarea/splrequest": "dev-master"
    }
}

```

Preparation
-----------

[](#preparation)

Some (local) settings need to be applied before you can use this script:

- Open StationPlaylist Studio
- Open the Options window (Ctrl+O or View &gt; Options)
- Enable the connection with SPL from the outside:

    - On the left, select the tab named "Communications"
    - Set the port for TCP connections to StationPlaylist Studio
    - You don't need to set the "Send Response" value, as far as I know
    - Optionally, but preferably, set an IP Restriction (to the same IP as where the script is running)
    - Possibly: Forward the previously mentioned port so it's reachable from your public IP. This option can be found in your Router's settings or via your ISP
- Set which directories to make public:

    - On the left, select the tab named "Folder Locations"
    - The input box next to the "Search Folders" label contains the folders where this script can cruise through
    - Don't forget to enable the checkbox for "Include subfolders"

Usage
-----

[](#usage)

Autoload or include the class, and enable the namespace to make use of the class:

```
use LANarea\SPLRequest;

```

---

Make a new SPLRequest object and include the IP-address/Hostname, and the TCP port:

```
$spl = new SPLRequest('0.0.0.0', 0);

```

---

Get all available songs via the getAllSongs() method:

```
$results = $spl->getAllSongs(); // returns an array of all songs

```

The above is equal to the following:

```
$results = $spl->search('*');

```

Might be subject to the "Max Search Results"-setting under the "Communications" tab.

---

Searching for a song:

- Use \* as a wildcard operator (eg. "Avril\*" for all songs starting with 'Avril')
- Use | as an end to the query (eg. "A\*|" for a list of all songs starting with an A)

```
$results = $spl->search('Avril Lavigne*'); // returns an array, or false

```

Tip: Surround all your queries with the wildcard operator, eg. "\*Elvis\*"

---

Do a song request:

```
$spl->doRequest('C:/path/to/music - file.mp3'); // returns true or false

```

Alternatively you can add even more useful information:

```
$spl->doRequest('C:/path/to/music - file.mp3', 'John Doe', 'Brussels, Belgium');

```

---

Check out the example.php file for free por.. uh, examples of course.

Note
----

[](#note)

You'll have to implement your own request limititations, cacheing, etc.

With this package, you can only handle the data we can get to and from SPL.

Known issues
------------

[](#known-issues)

- Special signs like é,ä,û; are rendered as questionmarks. Probably something with the encoding. \[UTF-8 output since 5.20\]

License
-------

[](#license)

It is licensed under the New BSD License.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e328b7d6587e08734721f1cc2528e6b5964ae2f42cbb8ea5791c54c11f3d4b90?d=identicon)[xewl](/maintainers/xewl)

---

Top Contributors

[![xewl](https://avatars.githubusercontent.com/u/245041?v=4)](https://github.com/xewl "xewl (63 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

phpsong-requestssongssplstationplaylist-studio

### Embed Badge

![Health badge](/badges/lanarea-splrequest/health.svg)

```
[![Health](https://phpackages.com/badges/lanarea-splrequest/health.svg)](https://phpackages.com/packages/lanarea-splrequest)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
