PHPackages                             headsnet/grumphp-gitlab-lint - 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. headsnet/grumphp-gitlab-lint

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

headsnet/grumphp-gitlab-lint
============================

Lint your Gitlab CI configuration in a GrumPHP pre-commit hook

v0.1.4(2y ago)18.5kMITPHPPHP &gt;7.4

Since Aug 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/headsnet/grumphp-gitlab-lint)[ Packagist](https://packagist.org/packages/headsnet/grumphp-gitlab-lint)[ RSS](/packages/headsnet-grumphp-gitlab-lint/feed)WikiDiscussions main Synced 1mo ago

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

[![Github Actions](https://github.com/headsnet/grumphp-gitlab-lint/actions/workflows/ci.yml/badge.svg)](https://github.com/headsnet/grumphp-gitlab-lint/actions/workflows/ci.yml/badge.svg)[![Installs](https://camo.githubusercontent.com/a7f507e73bdee8e1c22d8967110e08bd2ad98ad96bf852954ea774cdd503e5b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656164736e65742f6772756d7068702d6769746c61622d6c696e742e737667)](https://packagist.org/packages/headsnet/grumphp-gitlab-lint/stats)[![Packagist](https://camo.githubusercontent.com/905c16ea3bd53015523c3265c74ae66f36c186f9b8be2e28ec0912c49f05ba29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68656164736e65742f6772756d7068702d6769746c61622d6c696e742e737667)](https://packagist.org/packages/headsnet/grumphp-gitlab-lint)

GrumPHP Gitlab Lint
===================

[](#grumphp-gitlab-lint)

Lint your Gitlab CI configuration in a GrumPHP pre-commit hook

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

[](#installation)

Supports Symfony 5.3 and above, with PHP 7.4 or higher.

Install with Composer:

```
composer require --dev headsnet/grumphp-gitlab-lint
```

Usage
-----

[](#usage)

```
# grumphp.yml
grumphp:
    tasks:
        gitlab_lint:
            api_token:   '%env(GITLAB_TOKEN)%'   # required
            gitlab_file: .gitlab-ci.yml          # optional
            gitlab_url:  gitlab.com              # optional
    extensions:
        - Headsnet\GrumPHP\GitlabLint\Loader
```

#### API Token (required)

[](#api-token-required)

You must create an API token to authenticate with. The token must have `api` access.

You can use `'%env(YOUR_ENV_VAR_NAME)%'` syntax to import an environment variable so you don't commit the token to your repository.

#### Gitlab File (optional)

[](#gitlab-file-optional)

Optional parameter to specify an alternative file to lint. Default is `.gitlab-ci.yml` in the project root.

#### Gitlab URL (optional)

[](#gitlab-url-optional)

A custom location for your on-premises Gitlab instance.

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

[](#contributing)

Contributions are welcome. Please submit pull requests with one fix/feature per pull request.

Composer scripts are configured for your convenience:

```
> composer test       # Run test suite
> composer cs         # Run coding standards checks
> composer cs-fix     # Fix coding standards violations
> composer static     # Run static analysis with Phpstan

```

Licence
-------

[](#licence)

This code is released under the MIT licence. Please see the LICENSE file for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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 ~115 days

Total

5

Last Release

897d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/baad3e4bf78f55c3242e2e84839614395ce22d21da10fd4379a57fcf2608611d?d=identicon)[benr77](/maintainers/benr77)

---

Top Contributors

[![benr77](https://avatars.githubusercontent.com/u/2156742?v=4)](https://github.com/benr77 "benr77 (10 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/headsnet-grumphp-gitlab-lint/health.svg)

```
[![Health](https://phpackages.com/badges/headsnet-grumphp-gitlab-lint/health.svg)](https://phpackages.com/packages/headsnet-grumphp-gitlab-lint)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[php-soap/ext-soap-engine

An ext-soap engine implementation

443.2M7](/packages/php-soap-ext-soap-engine)

PHPackages © 2026

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