PHPackages                             uglyphp/uglyphp - 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. uglyphp/uglyphp

ActiveLibrary

uglyphp/uglyphp
===============

A PHP-first styling engine for Laravel.

v0.1.0(today)01↑2900%MITPHPPHP ^8.3

Since Jul 28Pushed todayCompare

[ Source](https://github.com/uglyphp/uglyphp)[ Packagist](https://packagist.org/packages/uglyphp/uglyphp)[ RSS](/packages/uglyphp-uglyphp/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (2)Used By (0)

[![UglyPHP Logo](docs/public/art/uglyphp-logo.png)](docs/public/art/uglyphp-logo.png)

 [ ![Website](https://camo.githubusercontent.com/0b879409abb3b33208dd9c4de0ccc4ff9761b9f558861114de320931777c13ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776562736974652d75676c797068702e6465762d364434414646) ](https://uglyphp.dev/) [ ![Follow @uglyphp](https://camo.githubusercontent.com/4058e65cc88ac0706e0df2c183b6b2b3097d9d555a405dc36a4b2d1698581c5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f6c6c6f772d25343075676c797068702d3030303030303f6c6f676f3d78) ](https://x.com/uglyphp) [ ![License](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565) ](LICENSE)

Introduction
------------

[](#introduction)

UglyPHP is a typed, zero-runtime design-system engine for Laravel that lets you define styles in PHP and compiles them into deterministic, scoped CSS.

```
use UglyPHP\Style;

$button = Style::make()
    ->display('inline-flex')
    ->paddingX(16)
    ->paddingY(10)
    ->background('#6d4aff')
    ->color('#ffffff')
    ->rounded(8)
    ->hover(fn (Style $style) => $style->background('#5b3ef5'));

$button->className(); // "ugly-…"  (stable, content-based)
$button->compile();   // the scoped CSS
```

Write ugly. Ship beautiful.

Official Documentation
----------------------

[](#official-documentation)

You can read the official documentation on the [UglyPHP website](https://uglyphp.dev/).

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

[](#installation)

```
composer require uglyphp/uglyphp
```

Requires PHP `^8.3` and Laravel 12 or 13. The service provider is auto-discovered.

Local Development
-----------------

[](#local-development)

```
git clone  && cd uglyphp
composer install
```

```
composer test      # run the test suite (Pest)
composer analyse   # run static analysis (PHPStan / larastan, level 8)
composer lint      # check code style (Pint)
composer format    # apply code style
```

To run the documentation site locally:

```
npm install
npm run docs:dev
```

Contributing
------------

[](#contributing)

Thank you for considering contributing to UglyPHP. Please keep changes covered by tests and consistent with the existing code style (`composer test`, `composer analyse`, `composer lint` should all pass).

Code of Conduct
---------------

[](#code-of-conduct)

In order to ensure that the community is welcoming to all, please review and abide by Laravel's [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please do **not** open public issues for security vulnerabilities. Report them privately to ****.

License
-------

[](#license)

UglyPHP is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/309686190?v=4)[Ugly PHP](/maintainers/uglyphp)[@uglyphp](https://github.com/uglyphp)

---

Top Contributors

[![uglyphp](https://avatars.githubusercontent.com/u/309686190?v=4)](https://github.com/uglyphp "uglyphp (1 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M348](/packages/psalm-plugin-laravel)[moonshine/moonshine

Laravel administration panel

1.3k253.1k86](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

728176.2k14](/packages/tallstackui-tallstackui)[illuminate/console

The Illuminate Console package.

13046.0M6.9k](/packages/illuminate-console)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M250](/packages/laravel-ai)

PHPackages © 2026

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