PHPackages                             propz/release-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. propz/release-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

propz/release-parser
====================

A library for parsing scene release names into human readable data.

1.5.3(6mo ago)221.3k4[3 issues](https://github.com/pr0pz/scene-release-parser-php/issues)MITPHPPHP &gt;=7.4

Since Nov 23Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/pr0pz/scene-release-parser-php)[ Packagist](https://packagist.org/packages/propz/release-parser)[ Docs](https://github.com/pr0pz/scene-release-parser-php#readme)[ Fund](https://ko-fi.com/propz)[ RSS](/packages/propz-release-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (25)Used By (0)

**Scene Release Parser**
========================

[](#scene-release-parser)

[![Made with PHP](https://camo.githubusercontent.com/042ea02530cad9c465f31ddd0c275a6de983ffc8d8fe853d025d039eb43e6ac3/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c266d6573736167653d50485026636f6c6f723d373737424233266c6f676f3d706870266c6f676f436f6c6f723d666666)](https://camo.githubusercontent.com/042ea02530cad9c465f31ddd0c275a6de983ffc8d8fe853d025d039eb43e6ac3/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c266d6573736167653d50485026636f6c6f723d373737424233266c6f676f3d706870266c6f676f436f6c6f723d666666)[![Packagist package version](https://camo.githubusercontent.com/a62b7fbac59abb6618321989bc637d13a423fce5a4757790048ac31c6e8f7ed5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f707a2f72656c656173652d7061727365723f636f6c6f723d373737424233266c6162656c3d5061636b6167697374)](https://camo.githubusercontent.com/a62b7fbac59abb6618321989bc637d13a423fce5a4757790048ac31c6e8f7ed5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f707a2f72656c656173652d7061727365723f636f6c6f723d373737424233266c6162656c3d5061636b6167697374)[![Minimum PHP version: 7.4.0](https://camo.githubusercontent.com/7605775bddecd1fb812c319d2b85ab539164f52932db39315c9d942b6a521e3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70726f707a2f72656c656173652d7061727365722f7068703f636f6c6f723d373737424233266c6162656c3d504850)](https://camo.githubusercontent.com/7605775bddecd1fb812c319d2b85ab539164f52932db39315c9d942b6a521e3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f70726f707a2f72656c656173652d7061727365722f7068703f636f6c6f723d373737424233266c6162656c3d504850)

**A library for parsing scene release names into simpler, reusable data.**
--------------------------------------------------------------------------

[](#a-library-for-parsing-scene-release-names-into-simpler-reusable-data)

*Like it? I'd appreciate the support :)*

[![Watch on Twitch](https://camo.githubusercontent.com/990909e2b5299e78f251449cab489afea73435e6c096c8b86623f0d120b0f2f1/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d57617463682532306f6e266d6573736167653d54776974636826636f6c6f723d626639346666266c6f676f3d747769746368266c6f676f436f6c6f723d666666)](https://propz.de/twitch/)[![Sub on YouTube](https://camo.githubusercontent.com/059461f4fd0633c3432d35ae62d459210b46e9a950a79647ffee62d3f748e2c3/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d5375622532306f6e266d6573736167653d596f755475626526636f6c6f723d666630303030266c6f676f3d796f7574756265266c6f676f436f6c6f723d666666)](https://propz.de/youtube/)[![Join on Discord](https://camo.githubusercontent.com/98fb9564f884a1a005957a9bbe4e3aa313fa0b0e61ee4ac8edfaed4176996e3b/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4a6f696e2532306f6e266d6573736167653d446973636f726426636f6c6f723d373238396461266c6f676f3d646973636f7264266c6f676f436f6c6f723d666666)](https://propz.de/discord/)[![Donate on Ko-Fi](https://camo.githubusercontent.com/9c5a52efcf0853af8c9e6839dc5e3c34121057d1f9fec33d12fe6a701c18d0e0/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d446f6e6174652532306f6e266d6573736167653d4b6f2d466926636f6c6f723d666635663566266c6f676f3d6b6f6669266c6f676f436f6c6f723d666666)](https://propz.de/kofi/)

### **Description**

[](#description)

This library parses scene release names and splits the data into smaller, simpler, human readable and therefore more reusable data.

The applied rules are mostly based on studying the [existing collection of Scene rules](https://scenerules.org/) and other release examples from a PreDB, since a lot of releases are not named correctly (specially older ones).

The approach was to implement an algorithm that can really parse a variety of scene releases from all decades. The main test file covers some more complex names.

### **Instructions**

[](#instructions)

I assume you already know some PHP and [composer](https://getcomposer.org/) is already installed on your computer. The next steps are:

› Install the library via composer ***OR*** download the [latest release](https://github.com/pr0pz/scene-release-parser-php/releases/latest);

```
$ composer require propz/release-parser
```

› Include the composer autoloader file into your project:\\

```
require_once __DIR__ . '/vendor/autoload.php'
```

› Create a new ReleaseParser Class and pass the release name and (optionally) the release section (for better type parsing) as parameters;
› You can use the get() function to retrieve an array with all values or just target a specific value with get('name')

**Example:**

```
