Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Onr Phpcs Laravel Laravel Package

onramplab/onr-phpcs-laravel

Opinionated PHP_CodeSniffer ruleset for Laravel projects. Provides a ready-to-use PHPCS configuration with Laravel-focused coding standards to help keep code style consistent across your app and team.

View on GitHub
Deep Wiki
Context7

OnrampLab's PHPCS Configuration

We use this package to set up a consistent PHPCS configuration across my Laravel projects. The ruleset is based on @emielmolenaar ruleset.

If you wish to use this configuration in your project, install it using composer:

composer require --dev onramplab/onr-phpcs-laravel

Afterwards, run php vendor/bin/phpcs -i to verify that onr-phpcs-laravel is listed as an installed ruleset.

You may now use the ruleset like so:

php vendor/bin/phpcs --standard=onr-phpcs-laravel app/

Or you can create a phpcs.xml file in your root folder with following example:

<?xml version="1.0"?>
<ruleset name="Onramplab Laravel Standards">

    <description>The Laravel Coding Standards</description>

    <rule ref="onr-phpcs-laravel"/>

    <file>app</file>
    <file>config</file>
    <file>public</file>
    <file>resources</file>
    <file>routes</file>
    <file>tests</file>

</ruleset>

Contributions welcome.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata