PHPackages                             agelgil/pint-preset - 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. agelgil/pint-preset

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

agelgil/pint-preset
===================

A shared Laravel Pint preset for Makiba General Trading PLC projects

v0.2.0(1mo ago)01.0k↑257.1%MIT

Since Oct 27Pushed 1mo agoCompare

[ Source](https://github.com/agelgil/pint-preset)[ Packagist](https://packagist.org/packages/agelgil/pint-preset)[ RSS](/packages/agelgil-pint-preset/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

agelgil/pint-preset
===================

[](#agelgilpint-preset)

A shared Laravel Pint preset for Makiba General Trading PLC projects. It centralizes our PHP code style so all repositories use the same rules with a single, versioned configuration.

- Preset file: `vendor/agelgil/pint-preset/pint.json`
- Based on the full `@PhpCsFixer` and `@PhpCsFixer:risky` rule sets, with stricter additions (strict types, fixed class member ordering, trailing commas everywhere) and a required proprietary header.
- Intended for internal Makiba codebases. External use is allowed under MIT, but the header rule below will add a Makiba copyright notice to formatted files.

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

[](#installation)

```
composer require agelgil/pint-preset --dev
```

Quick start
-----------

[](#quick-start)

Run Pint using this preset directly:

```
./vendor/bin/pint --config vendor/agelgil/pint-preset/pint.json
```

### Recommended composer scripts

[](#recommended-composer-scripts)

Add convenient scripts to your project’s `composer.json`:

```
{
    "scripts": {
        "lint": "pint --config vendor/agelgil/pint-preset/pint.json --test",
        "format": "pint --config vendor/agelgil/pint-preset/pint.json"
    }
}
```

Then run:

```
composer lint   # check-only (fails on styling issues)
composer format # auto-fix files in place
```

What this preset enforces
-------------------------

[](#what-this-preset-enforces)

The preset builds on the `empty` Pint preset and enables, in order:

- `@PhpCsFixer` — the full non-risky formatting rule set (layout, whitespace, imports, PHPDoc).
- `@PhpCsFixer:risky` — risky transforms: strict comparison, native function invocation, alias replacements, and more.
- A required Makiba proprietary PHPDoc header, injected after `declare(strict_types=1);`.
- Strict additions on top of the sets: `declare_strict_types`, `void_return`, fixed class member ordering, `?`-syntax nullable types, trailing commas in all multiline constructs, classes-only namespace imports, and non-yoda comparisons (overriding the Symfony default).

See `pint.json` for the exact rule list. Later entries override the rule sets, so project-level deviations should be discussed before editing this package.

Notes:

- Risky fixers change runtime behavior (`==` becomes `===`, files gain `declare(strict_types=1);`). Run your full test suite after adopting or upgrading this preset, and land the initial reformat as a single dedicated commit (add its SHA to `.git-blame-ignore-revs`).
- A PHPDoc copyright header will be injected/updated at the top of every PHP file.

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance94

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

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

Every ~88 days

Total

4

Last Release

30d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fd28cb32a4cca3aaf21187959977a78066f4bc4c8b110c959efcf117e6dc4c4?d=identicon)[SamAsEnd](/maintainers/SamAsEnd)

---

Top Contributors

[![SamAsEnd](https://avatars.githubusercontent.com/u/9657132?v=4)](https://github.com/SamAsEnd "SamAsEnd (6 commits)")

---

Tags

devpresetPintagelgilmakiba

### Embed Badge

![Health badge](/badges/agelgil-pint-preset/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

15.0k136.3M996](/packages/barryvdh-laravel-ide-helper)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k121.2M796](/packages/symfony-maker-bundle)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k9.8M298](/packages/deptrac-deptrac)[symfony/polyfill

Symfony polyfills backporting features to lower PHP versions

2.8k4.7M28](/packages/symfony-polyfill)[phing/phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

1.2k22.7M924](/packages/phing-phing)[phpstan/extension-installer

Composer plugin for automatic installation of PHPStan extensions

508113.6M13.0k](/packages/phpstan-extension-installer)

PHPackages © 2026

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