PHPackages                             ar2labs/wiring - 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. [Framework](/categories/framework)
4. /
5. ar2labs/wiring

ActiveLibrary[Framework](/categories/framework)

ar2labs/wiring
==============

Wiring is a PHP micro framework core with Interoperability (PSRs).

v2.3.7(1mo ago)1825331BSD-3-ClausePHPPHP ^8.5CI passing

Since Jul 28Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/ar2labs/wiring)[ Packagist](https://packagist.org/packages/ar2labs/wiring)[ RSS](/packages/ar2labs-wiring/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (20)Versions (39)Used By (1)

Wiring
======

[](#wiring)

[![Build](https://github.com/ar2labs/wiring/actions/workflows/build.yml/badge.svg)](https://github.com/ar2labs/wiring/actions/workflows/build.yml)[![Quality Gate Status](https://camo.githubusercontent.com/743880cef65c3d8a77fc3672ccc915fdefe7fe54f8783663550e4219458fd01b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6172326c6162735f776972696e67266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/project/overview?id=ar2labs_wiring&branch=master)[![Coverage Status](https://camo.githubusercontent.com/38c25bef52caddf188a518b9e9cbc8b8b83ec5ad297a30498d6d14e3ac529d32/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6172326c6162732f776972696e672f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ar2labs/wiring?branch=master)[![Total Downloads](https://camo.githubusercontent.com/acd2a70e49eeb889efc5c9ecde44253afb3d1f403e5f0e6d01b63447a3cb725d/68747470733a2f2f706f7365722e707567782e6f72672f6172326c6162732f776972696e672f642f746f74616c2e737667)](https://packagist.org/packages/ar2labs/wiring)[![Latest Stable Version](https://camo.githubusercontent.com/4c8080bbe6598f4a43af8cec5a1bdcc9acbb45d3393b27492fee29049d1a8900/68747470733a2f2f706f7365722e707567782e6f72672f6172326c6162732f776972696e672f762f737461626c652e737667)](https://packagist.org/packages/ar2labs/wiring)[![License](https://camo.githubusercontent.com/068c529ab93b536fbe728f8de9b3d8e27f7b23308a2b32447fb91a341efa9389/68747470733a2f2f706f7365722e707567782e6f72672f6172326c6162732f776972696e672f6c6963656e73652e737667)](https://github.com/ar2labs/wiring/blob/master/LICENSE.md)

Wiring is a PHP micro framework core with Interoperability (PSRs).

This package is compliant with [PSR-1](https://www.php-fig.org/psr/psr-1/), [PSR-3](https://www.php-fig.org/psr/psr-3/), [PSR-4](https://www.php-fig.org/psr/psr-4/), [PSR-6](https://www.php-fig.org/psr/psr-6/), [PSR-7](https://www.php-fig.org/psr/psr-7/), [PSR-11](https://www.php-fig.org/psr/psr-11/), [PSR-12](https://www.php-fig.org/psr/psr-12/), [PSR-14](https://www.php-fig.org/psr/psr-14/), [PSR-15](https://www.php-fig.org/psr/psr-15/), [PSR-17](https://www.php-fig.org/psr/psr-17/) and [PSR-18](https://www.php-fig.org/psr/psr-18/).

Package install
---------------

[](#package-install)

1. Via Composer

    ```
    composer require ar2labs/wiring
    ```

    or if you don't have a composer installation:

    [Get Composer](https://getcomposer.org/download/)

Quick start project
-------------------

[](#quick-start-project)

1. Create a start project:

    ```
    composer create-project ar2labs/wiring-start
    ```
2. Change to the directory created

    ```
    cd wiring-start/
    ```
3. Create `.env`

    ```
    cp .env.example .env
    ```
4. Start PHP Built-in web server:

    ```
    php maker serve
    ```

    or run with php:

    ```
    php -S 127.0.0.1:8000 -t public/
    ```
5. Open your browser at:

    ```
    http://127.0.0.1:8000
    ```

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

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 8.5

PHP Extension Requirements:

- JSON
- Mbstring

Development and CI checks also use Composer, PHPUnit, PHPStan, PHP-CS-Fixer, DOM/XML extensions, and Xdebug for Clover coverage generation.

Quality gates
-------------

[](#quality-gates)

The project is expected to pass these release checks:

```
composer validate --strict
composer install
composer audit --locked --abandoned=fail
composer check-platform-reqs
vendor/bin/php-cs-fixer fix --config=php_cs.dist --dry-run --diff --no-interaction
vendor/bin/phpstan analyse --configuration phpstan.neon --no-progress --ansi
vendor/bin/phpunit --configuration phpunit.xml.dist --colors=always
vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-clover build/logs/clover.xml --colors=always
```

Security posture
----------------

[](#security-posture)

Wiring is a micro-framework core. Authentication, authorization, CSRF token storage, session storage, database query execution, template escaping policy, and application-specific input validation are provided by consuming applications through interfaces and injected services.

Security-sensitive defaults in this package include relative-only controller redirects, XML request parsing with network access disabled, JavaScript-safe console helper encoding, generic production error messages, redaction of sensitive logger context values, CR/LF rejection before emitting headers, and cookies with `HttpOnly` plus `SameSite=Lax` by default. Cookie `Secure` is set automatically when PHP reports an HTTPS request; deployments behind reverse proxies should pass `true` explicitly or normalize HTTPS server parameters before setting cookies.

Residual deployment assumptions include HTTPS termination, HSTS policy, trusted reverse-proxy headers, cookie domain scope, production `php.ini`, secret management, template escaping in the configured renderer, prepared SQL statements in database implementations, CSRF enforcement in applications that process state-changing forms, and operational log retention/redaction controls.

Documentation
-------------

[](#documentation)

Project documentation is available in [docs/README.md](docs/README.md).

- [Getting Started](docs/GETTING_STARTED.md)
- [Integration Guide](docs/INTEGRATION.md)
- [Architecture](docs/ARCHITECTURE.md)
- [API Reference](docs/API_REFERENCE.md)
- [PHP 8.5 Migration And Security Notes](docs/PHP8_MIGRATION.md)
- [Security Policy](docs/SECURITY.md)
- [Release Process](docs/RELEASE.md)

Copyright and license
---------------------

[](#copyright-and-license)

Code and documentation copyright (c) 2020, Code released under the [BSD-3-Clause license](https://github.com/ar2labs/wiring/blob/master/LICENSE.md).

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance92

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

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

Every ~67 days

Recently: every ~532 days

Total

38

Last Release

39d ago

PHP version history (4 changes)v2.0.0PHP ^7.1

v2.0.3PHP &gt;=7.1

v2.3.2PHP &gt;=7.2

v2.3.7PHP ^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5041497?v=4)[Anderson Costa](/maintainers/arcostasi)[@arcostasi](https://github.com/arcostasi)

---

Top Contributors

[![arcostasi](https://avatars.githubusercontent.com/u/5041497?v=4)](https://github.com/arcostasi "arcostasi (107 commits)")[![anderson-costa-pc](https://avatars.githubusercontent.com/u/253517110?v=4)](https://github.com/anderson-costa-pc "anderson-costa-pc (26 commits)")[![vinyvicente](https://avatars.githubusercontent.com/u/513934?v=4)](https://github.com/vinyvicente "vinyvicente (14 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (13 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[windwalker/framework

The next generation PHP framework.

25640.0k1](/packages/windwalker-framework)[typo3/cms-core

TYPO3 CMS Core

3312.9M4.8k](/packages/typo3-cms-core)

PHPackages © 2026

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