ramasy/psrize

This bundle help you to test if your code follows psr-1/psr-2 standard

Maintainers

Details

github.com/ramasy/psrize

Source

Issues

Installs: 50

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master / 1.0.x-dev 2018-03-06 07:20 UTC

This package is not auto-updated.

Last update: 2024-06-12 02:48:57 UTC


README

This bundle helps you to improve your code design,style and structure on a symfony project, Features include:

  • Automatically corrects code inside php file to follow psr-2 standard
  • show code size
  • show naming recommandation
  • show unused variable

Documentation

Read the Documentation

Installation

1 Add to your composer.json file

{
    "require": {
        "ramasy/psrize": "dev-master"
    }
}

2 Run composer update

    $ composer update ramasy/psrize

3 Register the bundle in app/AppKernel.php

    $bundles = array(
        // ...
        new Ramasy\PsrizeBundle\RamasyPsrizeBundle(),
    );

4 Run

    $ php bin/console app:psrize path_to_a_directory 

path_to_a_directory represent a relative path from the directory src/ of your symfony project

Example :

the correct relative path for the directory youApp/src/AppBundle/Controller is AppBundle/Controller

License

This bundle is under the MIT license. See the complete license in the bundle

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.