Syntax-aware proofreading for your Laravel application.

Overview

Laravel Prose Linter

Latest Version on Packagist Total Downloads

Syntax-aware proofreading for your Laravel application.

The Laravel Prose Linter helps you to polish the texts of your Laravel application. Let it check your translations and even your blade templates for typos, slang and get suggestions for a better writing style depending on which prose style you choose.

Documentation

For installation instructions and usage and examples, please take a look at the official documentation.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments
  • Bump league/flysystem from 1.1.3 to 1.1.9

    Bump league/flysystem from 1.1.3 to 1.1.9

    Bumps league/flysystem from 1.1.3 to 1.1.9.

    Changelog

    Sourced from league/flysystem's changelog.

    1.1.9 - 2021-12-09

    • [Core] prevent strlen from receiving NULL.

    1.1.8 - 2021-11-28

    Fixed

    • [FTP] Detect PHP an FTP connection by either is_resource OR it being an instance of FTP\Connection (PHP 8.1)

    1.1.7 - 2021-11-25

    Fixed

    • [FTP] Windows detection on installations that produce lines with whitespaces (#1384)

    1.1.6 - 2021-11-21

    Fixed

    • [FTP] Listing contents required escaping for special characters (caused missing contents and failure of directory deletes)

    1.1.5 - 2021-08-17

    Fixed

    • [FTP] Do not fail when setting a connection to UTF-8 when it is already on UTF-8.

    1.1.4 - 2021-05-22

    Fixed

    • [Core] Whitespace normalization now no longer strips funky whitespace but throws an exception.
    Commits
    • 094defd Pre-release changelog
    • c8e93b7 Fixes #1388: cast prefix to string before passing it to strlen
    • c995bb0 Pre-release changelog
    • 87d045a Check for resource or FTP\Connection instance.
    • 3ca8f15 Prepare changelog
    • 218446b trim metadata from windows server #1383
    • 8f7d625 Insert 1.1.5 changelog that has gone missing
    • 4c5933b Corrected version
    • 627be7f Prepare 1.1.5 changelog
    • 11027e2 Invoke missing path escaping for FTP paths.
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 1
  • Add Php requirements to documentation

    Add Php requirements to documentation

    If you install the package you will get: composer require beyondcode/laravel-prose-linter

      Package beyondcode/laravel-prose-linter has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version  
    

    Php 8 is required to install this package.

    opened by digistorm 1
  • Flatten translation arrays

    Flatten translation arrays

    At the moment the translations only can be linted in this form

    return [
        'failed' => 'These credentials do not match our records.',
    // etc.
    ];
    

    If the array is deeper nested, as for example in the validation.php file, the texts get skipped at the moment. ToDo: Integrate this in TranslationLinter::readTranslationArray() and add a proper error message for Vale::lintString().

    opened by mechelon 1
  • v3.0.0

    v3.0.0

    • [x] make tests work with L9

    v3.0.0 - Laravel 9 compatibility

    New features

    • Laravel 9 support

    Upgrade guide

    • If you have published your own styles, you have to move them from ./resources/lang/vendor/laravel-prose-linter to ./resources/laravel-prose-linter, otherwise there will be problems with the correct detection of the language files.
    opened by mechelon 0
  • Support Laravel 9

    Support Laravel 9

    Describe the bug

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires beyondcode/laravel-prose-linter ^2.0 -> satisfiable by beyondcode/laravel-prose-linter[v2.0.0].
        - beyondcode/laravel-prose-linter v2.0.0 requires illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
    
    You can also try re-running composer require with an explicit version constraint, e.g. "composer require beyondcode/laravel-prose-linter:*" to figure out if any version is installable, or "composer require beyondcode/laravel-prose-linter:^2.1" if you know which you need.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    

    Executed command

    • composer require beyondcode/laravel-prose-linter

    System

    • OS or Server Version: Mac OS Monterey
    • PHP Version: 8.1
    • Laravel Version: 9.3
    • Package version: Latest
    opened by datlechin 0
  • Release 2.0

    Release 2.0

    • Changed the behaviour of the Linters from Exception-based to a simple array return, which leads to a different usage of the linter classes (checking for returned results instead of listening to exceptions) (breaking change) -- Adjusted tests

    • Enhanced behaviour of the package: Minimum alert level is now suggestions (breaking change)

    • Fixed the it_lints_single_translation_with_custom_styles test (it did not use a custom style so far)

    • https://github.com/beyondcode/laravel-prose-linter/pull/15/commits/2341f64c882263ff6499e84b2568c896d25b55b5

    • Fixed preceding dot in blade view from resources/view root

    • Updated docs and Readme

    • Code Style Improvements & StyleCI

    opened by mechelon 0
  • Code review

    Code review

    I modified some things in this PR:

    • I moved Vale from the src directory into the bin directory in the root. As it's a third-party dependency, I think it's better to have this outside of our src directory.
    • I replaced all # comments with // - just personal preference
    • Instead of looking up blade views manually, I added the Symfony Finder as a dependency, so we loose a bunch of lines of code in favor of a nicer API
    • I replaced all the Symfony process calls to create and delete temporary directories with Laravel's File facade calls.
    opened by mpociot 0
  •  Unexpected error - blade views

    Unexpected error - blade views

    Describe the bug When running php artisan lint:blade I see an "Unexpected error" next to each blade file.

    Executed command php artisan lint:blade

    CLI output

    [a whole lot of views with the same error]

    Invalid vale output. (teamwork.index) Unexpected error. Invalid vale output. (teamwork.emails.invite) Unexpected error. Invalid vale output. (teamwork.edit) Unexpected error. Invalid vale output. 367/367 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 1 sec(teamwork.create) Unexpected error. Invalid vale output.

    ✅ No errors, warnings or suggestions found. Applied styles: WriteGood, Vale 🏁 Finished linting in 1 seconds.

    Expected behavior A clear and concise description of what you expected to happen.

    Screenshots and further data View are found a resources/views//.blade.php

    System

    • OS or Server Version MacOS
    • PHP Version 7.4.21
    • Laravel Version v8.51.0
    • Package version dev-review

    Additional context The error doesn't arise when using lint:translation

    waiting for response 
    opened by kyranb 5
Releases(v3.0.0)
  • v3.0.0(Dec 17, 2022)

    New features

    • Laravel 9 support

    Upgrade guide

    • If you have published your own styles, you have to move them from ./resources/lang/vendor/laravel-prose-linter to ./resources/laravel-prose-linter, otherwise there will be problems with the correct detection of the language files.

    What's Changed

    • Apply fixes from StyleCI by @mechelon in https://github.com/beyondcode/laravel-prose-linter/pull/19
    • v3.0.0 by @mechelon in https://github.com/beyondcode/laravel-prose-linter/pull/18

    Full Changelog: https://github.com/beyondcode/laravel-prose-linter/compare/v2.0.0...v3.0.0

    Source code(tar.gz)
    Source code(zip)
  • v2.0.0(Jan 6, 2022)

    This release increases the major version for two reasons:

    • The command behaves differently, as it now also show suggestions (see below)
    • If you use the Linter classes on your own, the results don't come as a LinterException anymore, but as a simple return (see below)

    Even though these are breaking changes, you shouldn't need to adapt your application.

    What's new

    • Enhanced behaviour of the package: Minimum alert level is now suggestions
    • Updated docs and Readme
    • Code Style Improvements & StyleCI

    Bugfixes

    • #2 Changed the behaviour of the Linters from Exception-based to a simple array return, which leads to a different usage of the linter classes (checking for returned results instead of listening to exceptions)
    • Fixed the it_lints_single_translation_with_custom_styles test (it did not use a custom style so far)
    • Fixed preceding dot in blade view from resources/view root

    New Contributors

    • @antonioribeiro made their first contribution in https://github.com/beyondcode/laravel-prose-linter/pull/5
    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Jun 16, 2021)

    Syntax-aware proofreading for your Laravel application.

    The Laravel Prose Linter helps you to polish the texts of your Laravel application. Let it check your translations and even your blade templates for typos, slang and get suggestions for a better writing style depending on which prose style you choose.

    For installation instructions and usage and examples, please take a look at the official documentation.

    Source code(tar.gz)
    Source code(zip)
Owner
Beyond Code
Beyond Code
A Laravel admin panel which is creating CRUD for your application automatically.

Adds a zero configuration Admin Panel to your Laravel Application Installation You can install the package via composer: composer require max-hutschen

42coders 10 Aug 24, 2022
Start your application with Hamtaro.

Hamtaro framework About Technologies Controllers Components Commands Front-end development Getting Started About Hamtaro is the new web framework for

Phil'dy Jocelyn Belcou 1 May 12, 2022
Laravel CRUD Generator This Generator package provides various generators like CRUD, API, Controller, Model, Migration, View for your painless development of your applications.

Laravel CRUD Generator This Generator package provides various generators like CRUD, API, Controller, Model, Migration, View for your painless develop

AppzCoder 1.3k Jan 2, 2023
Laravel and AngularJS Starter Application Boilerplate featuring Laravel 5.3 and AngularJS 1.5.8

?? Zemke/starter-laravel-angular has been upgraded to AngularJS 1.5.8. ?? Zemke/starter-laravel-angular has been upgraded to Laravel 5.3. You can pull

Florian Zemke 372 Nov 21, 2022
Laravel Quick-Start - a boilerplate for Laravel Application with typical packages preinstalled and configured

Laravel Quickstart is a boilerplate for Laravel Application with typical packages preinstalled and configured to extend a full-fledged application. We tried to make it as minimal as possible.

Vijay Goswami 18 Sep 8, 2022
⬆️ ⬇️ User vote system for Laravel Application.

Laravel Vote ⬆️ ⬇️ User vote system for Laravel Application. Installing $ composer require overtrue/laravel-vote -vvv Configuration This step is optio

安正超 79 Dec 21, 2022
Creating a simple weather web application with Laravel rest API.

Weather Channel Creating a website for weather status, with Laravel restAPI. See the Website Weather.Channel-1.mov Features REST API Invoake Controlle

AmirH.Najafizadeh 3 Jul 31, 2022
Registry manager for Laravel 5. An alternative for managing application configurations and settings.

Registry manager for Laravel 5. An alternative for managing application configurations and settings. Now with the magic of caching, so no more database calls to simply get site setting.

Daniel Stainback 22 Sep 28, 2020
Quick new application creation with Laravel and Valet

Super-powered laravel new for Laravel and Valet Lambo is a command-line tool that replaces the Laravel installer and wraps up the most common tasks yo

Tighten 593 Dec 30, 2022
Laravel CRUD Generator, Make a Web Application Just In Minutes, Even With Less Code and fewer Steps !

?? CRUDBOOSTER - Laravel CRUD Generator Laravel CRUD Generator, Make a Web Application Just In Minutes, Even With Less Code and fewer Steps ! About CR

Crocodic Studio 1.7k Jan 8, 2023
👔 Enterprise Web application starter kit or template using Laravel

Laravel Enterprise Starter Kit (LESK) Description LESK, is a template project based on the Laravel LTS, combining a set of features that can kick star

Sebastien Routier 1 Dec 31, 2020
Laravel Framework 5 Bootstrap 3 Starter Site is a basic application with news, photo and video galeries.

Laravel Framework 5.1 Bootstrap 3 Starter Site Starter Site based on on Laravel 5.1 and Boostrap 3 Features Requirements How to install Application St

null 900 Dec 22, 2022
Demo and practice application with Laravel 8 and InertiaJS. (From laracasts course)

InertiaJS playground ⚽️ Started with the Laracasts: Build Modern Laravel Apps Using Inertia.js course and decided to share all my code here, I'll be a

Kasper Ligthart 1 Dec 2, 2021
This is a simple TodoMVC application in Laravel.

TodoMVC with Laravel PHP framework as backend. Working demo at http://laraveltodos.pagodabox.com Also a secure version avaiable at http://laraveltodos

Maksim Surguy 59 Nov 28, 2021
An implementing of the Laravel Breeze application / authentication starter kit frontend in Next.js

Windmill with Laravel Breeze as Backend API Introduction This repository is an implementing of the Laravel Breeze application / authentication starter

ROKET ID 17 Nov 18, 2022
project with laravel 9 and php 8 and vuejs 3(modular) in both multi page and single page application

About Project Since Laravel 9 was recently released, it supports PHP 8 and above. So I decided to implement a prototype project using Laravel 9 + PHP

ali ahmadi 10 Sep 7, 2022
CodeIgniter 4-based application skeleton

Bonfire 2 Just getting started. More details at Patreon What is Bonfire? Bonfire will be a robust application skeleton for CodeIgniter 4-based applica

Lonnie Ezell 79 Dec 25, 2022
This is a skeleton to quickly set up a new Slim 4 application.

Slim 4 Skeleton This is a skeleton to quickly set up a new Slim 4 application. Requirements PHP 7.4+ or 8.0+ MySQL 5.7+ or MariaDB Recommended Apache

Daniel Opitz 376 Jan 2, 2023