PackageTrack
Sign in Get early access

nextcloud/coding-standard

Nextcloud coding standards for the php cs fixer

v1.5.0 4.1M downloads/mo #1357 most downloaded on Packagist nextcloud/coding-standard

What this package is like to depend on

Last release 3 months ago

19 May 2026

Release timing varies

gaps range from 4 weeks to 1.4 years

Most releases are documented

notes for 14 of 19 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

19 releases · first in 2020

1 release in the last 12 months

see the full history below

Release timeline

19 releases · Mar 2020 to May 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 19
  1. v1.5.0 19 May 2026
    Release notes

    What's Changed

    • chore: Move from deprecated visibility_required to modifier_keywords by @come-nc in #51
    • feat: Set precise rules for blank lines by @come-nc in #52

    Full Changelog: v1.4.0...v1.5.0

    Open source →
    Release notes

    Added

    • blank_lines_before_namespace: Make sure a blank line precedes the namespace declaration
    • no_extra_blank_lines: Remove extra blank lines where they are not needed to improve readability
    Open source →
  2. v1.4.0 19 Jun 2025
    Release notes

    What's Changed

    • style: add operator_linebreak by @blizzz in #40
    • build(deps): drop PHP 7.x for incompatiblity by @blizzz in #43
    • chore: suggest package as dev dependency by @kesselb in #44
    • style: enforce no_whitespace_in_blank_line by @kesselb in #45
    • chore: update changelog by @kesselb in #46

    New Contributors

    Full Changelog: v1.3.2...v1.4.0

    Open source →
    Release notes

    Added

    • no_whitespace_in_blank_line: Remove trailing whitespace at the end of blank lines
    • operator_linebreak: Split conditional statements into multiple lines and place operator at the beginning
    Open source →
  3. v1.3.2 14 Oct 2024
    Release notes

    What's Changed

    • style: add type_declaration_spaces by @kesselb in #37

    Full Changelog: v1.3.1...v1.3.2

    Open source →
    Release notes

    Added

    • type_declaration_spaces: A single space between typehint and variable name
    Open source →
  4. v1.3.1 19 Sep 2024
    Release notes

    Fixed

    • Removed misbehaving ErickSkrauch/blank_line_before_return and ErickSkrauch/line_break_after_statements rules
    Open source →
    Release notes

    Fixed

    • Removed misbehaving ErickSkrauch/blank_line_before_return and ErickSkrauch/line_break_after_statements rules
    Open source →
  5. v1.3.0 18 Sep 2024
    Release notes

    Changed

    • trailing_comma_in_multiline: Add a trailing comma to multline function parameters
    • MultilinePromotedPropertiesFixer: Break promoted properties on multiple lines
    • ErickSkrauch/blank_line_before_return: Add a blank line before each return
    • ErickSkrauch/line_break_after_statements: Add a blank line after all control statements
    • concat_space: Concatenation should be spaced
    • nullable_type_declaration: Changes DateTimeInterface|null to ?DateTimeInterface
    Open source →
    Release notes

    Changed

    • trailing_comma_in_multiline: Add a trailing comma to multline function parameters
    • MultilinePromotedPropertiesFixer: Break promoted properties on multiple lines
    • ErickSkrauch/blank_line_before_return: Add a blank line before each return
    • ErickSkrauch/line_break_after_statements: Add a blank line after all control statements
    • concat_space: Concatenation should be spaced
    • nullable_type_declaration: Changes DateTimeInterface|null to ?DateTimeInterface
    Open source →
  6. v1.2.3 23 Aug 2024
    Release notes

    Changed

    • cast_spaces: No space between cast and variable
    Open source →
    Release notes

    Changed

    • cast_spaces: No space between cast and variable
    Open source →
  7. v1.2.2 23 Aug 2024
    Release notes

    Added

    • cast_spaces: A single space between cast and variable
    • lowercase_cast: Cast should be written in lower case
    • method_chaining_indentation: Use the same indentation when changing methods
    • no_short_bool_cast: Short cast bool using double exclamation mark should not be used
    • phpdoc_align: All items of the given PHPDoc tags must be left-aligned
    • phpdoc_single_line_var_spacing: Single line @var PHPDoc should have proper spacing
    • phpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotations
    • short_scalar_cast: (boolean) => (bool), (integer) => (int), ...
    • single_quote: Use single quotes for simple strings
    • types_spaces: No spaces around union and intersection type operators
    Open source →
    Release notes

    Added

    • cast_spaces: A single space between cast and variable
    • lowercase_cast: Cast should be written in lower case
    • method_chaining_indentation: Use the same indentation when changing methods
    • no_short_bool_cast: Short cast bool using double exclamation mark should not be used
    • phpdoc_align: All items of the given PHPDoc tags must be left-aligned
    • phpdoc_single_line_var_spacing: Single line @var PHPDoc should have proper spacing
    • phpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotations
    • short_scalar_cast: (boolean) => (bool), (integer) => (int), ...
    • single_quote: Use single quotes for simple strings
    • types_spaces: No spaces around union and intersection type operators
    Open source →
  8. v1.2.1 01 Feb 2024
    Release notes

    1.2.1 - 2024-02-01

    Fix

    Full Changelog: v1.2.0...v1.2.1

    Open source →
    Release notes

    Fix

    • fix: Remove fully_qualified_strict_types again by @nickvergessen in https://github.com/nextcloud/coding-standard/pull/16
    Open source →
  9. v1.2.0 01 Feb 2024
    Release notes

    1.2.0 - 2024-02-01

    Added

    • array_syntax: Force short syntax for array
    • list_syntax: Same for list
    • fully_qualified_strict_types: Remove namespace from classname when there is a use statement, and add missing backslash for global namespace
    • no_leading_import_slash: Remove leading slash from use statement
    • nullable_type_declaration_for_default_null_value: Add missing ? on type declaration for parameters defaulting to null. This will most likely be needed to avoid warnings in PHP 8.4.
    • yoda_style: forbid yoda style comparision. This replaces null === $a by $a === null.

    What's Changed

    • Extend coding standard with new rules by @come-nc in #15

    Full Changelog: v1.1.1...v1.2.0

    Open source →
    Release notes

    Added

    • array_syntax: Force short syntax for array
    • list_syntax: Same for list
    • fully_qualified_strict_types: Remove namespace from classname when there is a use statement, and add missing backslash for global namespace - Removed in 1.2.1 due to issues
    • no_leading_import_slash: Remove leading slash from use statement
    • nullable_type_declaration_for_default_null_value: Add missing ? on type declaration for parameters defaulting to null. This will most likely be needed to avoid warnings in PHP 8.4.
    • yoda_style: forbid yoda style comparision. This replaces null === $a by $a === null.
    Open source →
  10. v1.1.1 01 Jun 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v1.1.0...v1.1.1

    Open source →
    Release notes

    Changed

    • feat: use php-cs-fixer/shim by @kesselb in https://github.com/nextcloud/coding-standard/pull/13
    Open source →
  11. v1.1.0 13 Apr 2023
    Release notes

    Changed

    • Order imports alphabetically by @come-nc in https://github.com/nextcloud/coding-standard/pull/10
    • fix(rules): Replace deprecated braces rules by @nickvergessen in https://github.com/nextcloud/coding-standard/pull/12
    Open source →
  12. v1.0.0 10 Nov 2021
    Release notes

    Breaking change

    • Update php-cs-fixer to 3.x
    • See https://github.com/nextcloud/coding-standard#upgrade-from-v0x-to-v10 for instructions.
    Open source →
  13. v0.5.0 11 Jan 2021
    Release notes

    Added

    • New rule: short list syntax
    • php7.2 support (back, for apps that support Nextclod 20 - 21)
    Open source →
  14. v0.4.0 14 Dec 2020
    Release notes

    Added

    • php8 support
    • New rule: binary operators should be surrounded by a single space

    Changed

    • php-cs-fixer updated to the latest version
    Open source →
  15. v0.3.0 10 Apr 2020

    Nothing published for this version

  16. v0.2.0 09 Apr 2020

    Nothing published for this version

  17. v0.1.0 31 Mar 2020

    Nothing published for this version

  18. v0.0.2 31 Mar 2020

    Nothing published for this version

  19. v0.0.1 27 Mar 2020

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive