PHPackages                             idsulik/php-ass - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. idsulik/php-ass

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

idsulik/php-ass
===============

A PHP library for reading, creating, and manipulating Advanced SubStation Alpha (.ass) subtitle files.

v1.0.3(1y ago)118.8k↓35.3%2PHPPHP ^7.4 || ^8.0

Since Jul 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/idsulik/php-ass)[ Packagist](https://packagist.org/packages/idsulik/php-ass)[ RSS](/packages/idsulik-php-ass/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

PHP Advanced Substation Alpha (ASS) Subtitle Parser/Formatter
=============================================================

[](#php-advanced-substation-alpha-ass-subtitle-parserformatter)

Overview
--------

[](#overview)

`php-acc` is a PHP library designed for working with Advanced Substation Alpha (ASS) subtitle files. This library allows you to build, modify, and manage ASS subtitle files programmatically.

Features
--------

[](#features)

- **Text Formatting**: Easily add and manage various text formatting options such as bold, italic, underline, and strikeout.
- **Styling**: Apply styles including font, font size, and text color.
- **Positioning and Animation**: Set precise text positions, animate text with movement, fading, and transitions.

Installation
------------

[](#installation)

You can install the library via Composer. Add the following to your `composer.json`:

```
{
  "require": {
    "idsulik/php-acc": "dev-main"
  }
}
```

Then run:

```
composer install
```

Alternatively, you can clone the repository and include the necessary files manually.

Usage
-----

[](#usage)

### Building Subtitle Text

[](#building-subtitle-text)

The `EventTextBuilder` class allows you to construct ASS subtitle text with various commands. Here’s an example:

```
