PHP Package: micheh/phpcs-gitlab

PHP library for integrating PHP CodeSniffer with GitLab CI pipelines to enhance code quality and compliance checks efficiently

Current Version: 2.1.0
Last Updated: 2025-09-17
PHP Requirement: >=7.4
Dependencies:
squizlabs/php_codesniffer
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

phpcs-gitlab is a PHP library designed to streamline the integration of PHP CodeSniffer into GitLab CI pipelines, enabling robust code quality assessments and compliance checks. By leveraging this library, developers can easily enforce coding standards, identify and rectify issues promptly, and maintain code consistency across projects. The seamless GitLab integration fosters a collaborative development environment, empowering teams to deliver high-quality code efficiently.

🔗 View on GitHub

Download Latest Version: 2.1.0

Download Download v2.1.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/micheh/phpcs-gitlab/2.1.0/loader.php';
require_once 'libs/squizlabs/php_codesniffer/3.7.2/loader.php';

use Squiz\PHPCS\Files;
use Micheh\PHPCS\GitLab\Runner;

$obj = new Files();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.