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

Coding Standard Laravel Package

wdes/coding-standard

View on GitHub
Deep Wiki
Context7
v3.3.2
  • Fixed SlevomatCodingStandard.TypeHints.DeclareStrictTypes (d95135d489b5633ef874855c9a07c2db85f9aedb)
  • Bump dependencies (5f2d8bfb95aab1ce578a4c67d79595f97310d56f)
  • Adjust testing gear
v3.3.1
  • Removed SlevomatCodingStandard.Files.TypeNameMatchesFileName (42d4eecce9fd8e5ec3a33afee3ec53aab795ac25)
v3.3.0
  • ⚠️ removed support for PHP 7.1 (1d2c9a5fdba898bd963a356063cf77ac09f5a96a)
  • Add new rule SlevomatCodingStandard.Files.TypeNameMatchesFileName (ef96d6773234f036d41fed4ec2f79a97029efd19)
  • Bump slevomat/coding-standard from ^7.0.18 to ^8.6.3 (1d2c9a5fdba898bd963a356063cf77ac09f5a96a, c638c46425822cdd2e9a6e6fa9182414689e48db)
  • Test on PHP 8.2 (b0868973df53eff2ea5c1db35760ff7bd362135d)
v3.2.1
  • Enable back Generic.PHP.LowerCaseType rule disabled due to a syntax mistake (cd470ea598dcf9c5de3dd05517c667905b871be9)
  • Internal micro improvements
  • Force coding standard to only apply to .php files (a1d22eb952cb689e04e2357533a01550ed4b6575)
  • Documentation improvements
v3.2.0
  • Add more rules (d3107e882f0c3f9c2b913860acbc1fe5a41d8aa0)
    • Disallow old list syntax list(...) = $var
    • Disallow group use
    • Disallow trailing comma in function declaration
    • Enforce trailing array comma
    • Enforce class constant visibility
    • Enforce nullable hint on default null value in signatures
    • Some more minor rules, see the commit d3107e882f0c3f9c2b913860acbc1fe5a41d8aa0
v3.1.0
  • Forbid long array syntax (e5a379db59a9e4798694f0f870a76afa9e1deb87)
  • Upgrade dependencies
  • Improve the README
  • Run coding standard test on PHP 8.1
v3.0.0
  • Add PSR1, PS2, PSR12
  • Adjust DeclareStrictTypes spacings
  • Remove phpdoc rules (please keep your docs perfect anyway ;))
     <rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
     <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
         <properties>
-            <property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
-            <property name="newlinesCountAfterDeclare" value="1"/>
+            <property name="newlinesCountBetweenOpenTagAndDeclare" value="2"/>
+            <property name="newlinesCountAfterDeclare" value="2"/>
             <property name="spacesCountAroundEqualsSign" value="1"/>
         </properties>
     </rule>
@@ -94,16 +94,13 @@
     <rule ref="PEAR.NamingConventions.ValidClassName"/>
     <rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/>
     <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
-    <rule ref="PSR1.Classes.ClassDeclaration"/>
-    <rule ref="PSR1.Files.SideEffects"/>
-    <rule ref="PSR2.ControlStructures.ControlStructureSpacing"/>
-    <rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
-    <rule ref="PSR2.Files.EndFileNewline"/>
-    <rule ref="PSR2.Methods.MethodDeclaration"/>
-    <rule ref="PSR2.Namespaces.NamespaceDeclaration"/>
-    <rule ref="PSR2.Namespaces.UseDeclaration"/>
     <rule ref="Squiz.Strings.DoubleQuoteUsage" />
-    <rule ref="Squiz.PHP.DisallowMultipleAssignments"/>
+    <rule ref="Squiz.Strings.ConcatenationSpacing">
+        <properties>
+            <property name="spacing" value="1"/>
+            <property name="ignoreNewlines" value="true"/>
+        </properties>
+    </rule>
     <rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
     <rule ref="Squiz.PHP.DiscouragedFunctions">
         <properties>
@@ -141,6 +138,12 @@
     <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine">
         <severity>0</severity>
     </rule>
-    <rule ref="PSR12.Keywords.ShortFormTypeKeywords"/>
-    <rule ref="PSR12.Classes.ClassInstantiation"/>
+    <rule ref="PSR1"/>
+    <rule ref="PSR2">
+        <exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
+    </rule>
+    <rule ref="PSR12">
+        <exclude name="PSR12.Files.DeclareStatement.SpaceFoundAfterDirective"/>
+        <exclude name="PSR12.Files.DeclareStatement.SpaceFoundBeforeDirectiveValue"/>
+    </rule>
 </ruleset>
v2.0.1

Drop:

<rule ref="PEAR.Commenting.FunctionComment"/>
<rule ref="PEAR.Commenting.InlineComment"/>
<rule ref="Squiz.PHP.CommentedOutCode">
        <properties>
            <property name="maxPercentage" value="50"/>
        </properties>
</rule>
v2.0.0

Add:

    <rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
    <rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
    <rule ref="SlevomatCodingStandard.Functions.StaticClosure"/>
    <rule ref="Squiz.Strings.DoubleQuoteUsage" />
v1.0.0

First version

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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor