PHPackages                             webshr/bricks-builder-stubs - 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. webshr/bricks-builder-stubs

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

webshr/bricks-builder-stubs
===========================

Bricks Builder stubs for static analysis (PHPStan) and IDE autocompletion.

2.3.3(1mo ago)074MITPHPPHP ^8.0

Since Apr 27Pushed 1mo agoCompare

[ Source](https://github.com/webshr/bricks-builder-stubs)[ Packagist](https://packagist.org/packages/webshr/bricks-builder-stubs)[ Docs](https://github.com/webshr/bricks-builder-stubs)[ RSS](/packages/webshr-bricks-builder-stubs/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Bricks Builder Stubs
====================

[](#bricks-builder-stubs)

Stub declarations for [Bricks Builder](https://bricksbuilder.io/) core functions, classes and interfaces. These stubs help plugin and theme developers leverage static analysis tools like [PHPStan](https://github.com/phpstan/phpstan) and improve IDE autocompletion.

The stubs are generated from the `bricks` theme folder using [php-stubs/generator](https://github.com/php-stubs/generator).

> This package is **not affiliated with or endorsed by** Bricks Builder. It contains only function and class signatures plus docblocks — no implementation. Bricks Builder is a commercial product; you must own a valid license to use it.

Requirements
------------

[](#requirements)

- PHP ^8.0

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

[](#installation)

Require this package as a development dependency with [Composer](https://getcomposer.org):

```
composer require --dev webshr/bricks-builder-stubs
```

Alternatively download `bricks-builder-stubs.php` directly.

Versioning
----------

[](#versioning)

Tags mirror the upstream Bricks Builder version they were generated from (e.g. tag `2.3.3` ↔ Bricks 2.3.3). Pin to the version that matches your installed Bricks release.

PHPStan
-------

[](#phpstan)

Reference the stub file from `phpstan.neon`:

```
parameters:
  scanFiles:
    - vendor/webshr/bricks-stubs/bricks-builder-stubs.php
```

If you also use WordPress, combine with [`szepeviktor/phpstan-wordpress`](https://github.com/szepeviktor/phpstan-wordpress)which already pulls in `php-stubs/wordpress-stubs`.

Regenerating the stubs
----------------------

[](#regenerating-the-stubs)

The `bricks/` source theme is not redistributed in this repository (it is commercial code). To regenerate after a Bricks release:

1. Place an extracted Bricks theme into `bricks/` at the repo root.
2. Run:

    ```
    composer install
    composer generate
    ```
3. Update `CHANGELOG.md` and tag the new version (matching the Bricks version).

License
-------

[](#license)

[MIT](LICENSE) for the stub generation tooling and the regenerated stub file. The original Bricks Builder source remains the property of its authors.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance91

Actively maintained with recent releases

Popularity13

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

43d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11009257?v=4)[enriquo](/maintainers/enriquo)[@enriquo](https://github.com/enriquo)

---

Top Contributors

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

---

Tags

PHPStanwordpressstatic analysisstubsbricksbricks-builder

### Embed Badge

![Health badge](/badges/webshr-bricks-builder-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/webshr-bricks-builder-stubs/health.svg)](https://phpackages.com/packages/webshr-bricks-builder-stubs)
```

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

953.3M90](/packages/php-stubs-woocommerce-stubs)[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

19915.0M370](/packages/php-stubs-wordpress-stubs)[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.7M117](/packages/php-stubs-wp-cli-stubs)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13847.8k20](/packages/php-stubs-wordpress-globals)

PHPackages © 2026

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