PHPackages                             baine/php-computed-styles - 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. baine/php-computed-styles

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

baine/php-computed-styles
=========================

"Use method chaining to add classes and styles to html elements in PHP.

1.0.2(2y ago)116MITPHP

Since Aug 27Pushed 2y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

PHP Computed Styles
===================

[](#php-computed-styles)

Build up classes or styles to be injected into HTML. I wrote a blog post about this project [on my blog](https://dylanbaine.com/read/a-cleaner-way-to-dynamically-style-elements-in-php).

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

[](#installation)

```
composer require baine/php-computed-styles
```

Example Usage
-------------

[](#example-usage)

The two main classes in this package can be used to build styles and classes for your HTML dynamically.

### ComputedClasses

[](#computedclasses)

```
