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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle