PeckPHP - A CLI tool designed to identify wording or spelling mistakes in your codebase

PeckPHP is a command-line tool developed by Nuno Maduro that meticulously scans your codebase for potential mistakes in wording and spelling. It examines folder, file, and method names, along with comments and other elements. Seamlessly integrating into your existing workflow, PeckPHP complements tools like Pint and Pest, ensuring a consistent and professional codebase. Note: Peck depends on GNU Aspell for its spell-checking functionality so you will need to ensure Aspell is installed on your system before using Peck. To install Peck use Composer with the following command: composer require peckphp/peck --dev ./vendor/bin/peck --init And then to check your project for spelling mistakes, run: ./vendor/bin/peck You can also configure Peck using a peck.json file in the root of your project. In this file you can specify an available preset along with words and paths to ignore. { "preset": "laravel", "ignore": { "words": [ "config",

PeckPHP - A CLI tool designed to identify wording or spelling mistakes in your codebase


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM


Click the link to join the registration on WhatsApp: https://chat.whatsapp.com/KThkuZlWaTcCu3iJHGBmLM

PeckPHP is a command-line tool developed by Nuno Maduro that meticulously scans your codebase for potential mistakes in wording and spelling. It examines folder, file, and method names, along with comments and other elements. Seamlessly integrating into your existing workflow, PeckPHP complements tools like Pint and Pest, ensuring a consistent and professional codebase.

Note: Peck depends on GNU Aspell for its spell-checking functionality so you will need to ensure Aspell is installed on your system before using Peck.

To install Peck use Composer with the following command:

composer require peckphp/peck --dev
./vendor/bin/peck --init

And then to check your project for spelling mistakes, run:

./vendor/bin/peck

PeckPHP output screenshot

You can also configure Peck using a peck.json file in the root of your project. In this file you can specify an available preset along with words and paths to ignore.

{
    "preset": "laravel",
    "ignore": {
        "words": [
            "config",
            "namespace"
        ],
        "paths": [
            "app/MyFolder",
            "app/MyFile.php"
        ]
    }
}

Expand your development toolkit with PeckPHP and streamline the process of maintaining a clean and professional codebase. Learn more about PeckPHP and view the source code on Github.


The post PeckPHP - A CLI tool designed to identify wording or spelling mistakes in your codebase appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow

Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com
Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com
Keep advertising to get more people

You could reach thousands of more people for every ₦1,000 you spend. https://doacweb.com/advertising

Adverts on doacWeb can be informative, educative or persuasive in nature.

doacWeb Ads is always directed at a broad audience (reaching thousands of people day by day), not few individuals — it deliver your advert to the target audience at the same time. Putting your offer in front of the right people — who have the money and interest in what you sell.

doacWeb Advertising gives you advantage as adverts passes through https://doacweb.com to the internet, reaching millions of people over the internet, and to grow your audience.

Grow your business, Be known, Boost your visibility, Drive engagements, Get new customers and Increase sales.

doacWeb acts as a global advertising media, to let people — individuals — and businesses, to promote and reach more interested people.

Get Started.

WhatsApp: 09031633831

Email: info@doacweb.com