Swiftpack.co - Package - Symplify/Symplify

Symplify main repository

Build Status Coverage Status Subscribe


Coding Standard

Build Status Downloads

Final interface, ::class Constant and other useful Checkers for PHP-CS-Fixer and PHP_CodeSniffer.


Easy Coding Standard

Build Status Downloads

The best and easiest way to start coding standard with. Combined both PHP-CS-Fixer and PHP_CodeSniffer.

Used by Shopsys, Nette, Sylius, php-ai/php-ml, LMC and Sunfox.

ECS-Run


Statie - www.statie.org

Build Status Downloads

Statie helps you to host and develop your blog on Github. A static site generator with aim on community websites.

Pehapkari.cz (Github repo) and TomasVotruba.cz (Github repo).


Other Utils Packages

You'll find them all in /packages directory:

Install

Fork, clone your repository and install dependencies:

git clone git@github.com:<your-name>/Symplify.git
cd Symplify
composer update

Contributing

This is a monolithic repository for Symplify packages. Put all your PRs and ISSUEs here.

3 Steps to Contribute

  • 1 feature per pull-request

  • New feature needs tests

  • Tests and static analysis must pass:

    composer complete-check
    
    # coding standard issues fix with
    composer fix-cs
    

We would be happy to merge your feature then.

Github

link
Stars: 75
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

v3.0.0-RC5 - Dec 9, 2017

Added

  • #480 [CodingStandard] add RemoveSuperfluousDocBlockWhitespaceFixer, which removes 2 spaces in a row in doc blocks
  • #481 [EasyCodingStandard] add warning as error support, to make useful already existing Sniffs, closes #477

Changed

  • #484 [Statie] add dry-run optiont to StatieApplication and BeforeRenderEvent to improve extendability, closes #483

  • https://github.com/Symplify/Symplify/commit/9a9c0e61d0b7af073d3819e4c4798a251eca1f14 [Statie] use statie.yml config based on Symfony DI over "fake" statie.neon to prevent confusion, closes #487

    Before

    # statie.neon
    includes:
         - source/data/config.neon
    

    After

    # statie.yml
    imports:
        - { resource: 'source/data/config.yml' }
    

    Before

    services:
        -
            class: App\TranslationProvider
    

    After

    services:
        App\TranslationProvider: ~
    

Removed

  • #488 [CodingStandard] drop PropertyAndConstantSeparationFixer, use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer instead

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC4...v3.0.0-RC5

v3.0.0-RC4 - Dec 6, 2017

Added

  • #475 [Statie] added support for generators
parameters:
    generators:
        # key name, it's nice to have for more informative error reports
        posts: 
            # name of variable inside single such item
            variable: post
            # name of variable that contains all items
            varbiale_global: posts
            # directory, where to look for them
            path: '_posts' 
            # which layout to use
            layout: '_layouts/@post.latte' 
            # and url prefix, e.g. /blog/some-post.md
            route_prefix: 'blog' 
            # an object that will wrap it's logic, you can add helper methods into it and use it in templates
            object: 'Symplify\Statie\Renderable\File\PostFile' 
  • https://github.com/Symplify/Symplify/commit/9b154d9b6e88075e14b6812613bce7c1a2a79daa [Statie] added -vvv CLI option for debug output

  • #473 bump to Symfony 4

  • #466 [CodingStandard] added Symplify\CodingStandard\Sniffs\DeadCode\UnusedPublicMethodSniff

  • #471 [EasyCodingStandard] various performance improvements

  • #473 [EasyCodingStandard] added LineLimitSebastianBergmannDiffer for nicer and compact diff outputs

  • #437 [TokenRunner] improved AbstractSimpleFixerTestCase with clearly named methods

Changed

  • #475 [Statie] renamed related_posts filter to related_items with general usage (not only posts, but any other own generator element)

    Before

    {var $relatedPosts = ($post|relatedPosts)}
    

    After

    {var $relatedPosts = ($post|relatedItems)}
    
  • #473 [CodingStandard] use ReflectionDocBlock for docblock analysis and modification

  • #474 [EasyCodingStandard] prefer diff report for changes over table report

  • #472 [EasyCodingStandard] improve FileProcessorInterface, improve performance via CachedFileLoader

Removed

  • #475 [Statie] removed postRoute, only prefix is now available per item in generator

  • #476 [CodingStandard] dropped NoInterfaceOnAbstractClassFixer, not useful in practise

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC3...v3.0.0-RC4

v3.0.0-RC3 - Dec 6, 2017

Added

  • [CodingStandard] ClassStringToClassConstantFixer now covers classes with double slashes: SomeNamespace\\SomeClass

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC2...v3.0.0-RC3

v3.0.0-RC2 - Nov 17, 2017

Added

  • 0ab538bd53c971f6a7163485230a44658f613768 [CodingStandard] Added BlankLineAfterStrictTypesFixer

  • #443 [EasyCodingStandard] Added smaller common configs for better --level usage

  • #447 [EasyCodingStandard] Allow -vvv for ProgressBar + 27 % speed improvement

  • #442 [PackageBuilder] Added AutoloadFinder to find nearest /vendor/autoload.php

  • #442 [PackageBuilder] Added provideParameter() and changeParameter() methods to ParameterProvider

Changed

  • 881577af893ed1e73260f713153004be78aaf101 [EasyCodingStandard] Removed -checkers suffix to make file naming consistent

Fixed

  • #422 [EasyCodingStandard] Fix skip_codes option for --fix run

Removed

  • #443 [CodingStandard] Dropped FinalTestCase, use SlamCsFixer\FinalInternalClassFixer instead
  • bc0cb09d5e5166830ba4ad95fd4d0ba8f4bcacf4 [EasyCodingStandard] php54.neon set removed

...

Full diff: https://github.com/Symplify/Symplify/compare/v3.0.0-RC1...v3.0.0-RC2

v3.0.0-RC1 - Nov 17, 2017

Added

  • #385 [CodingStandard] Added RequireFollowedByAbsolutePathFixer

  • #421 [CodingStandard] Added ImportNamespacedNameFixer

  • #427 [CodingStandard] Added RemoveUselessDocBlockFixer

  • #388 [EasyCodingStandard] Added support for ignoring particular sniff codes

  • #406 [EasyCodingStandard] Added support for ignoring particular codes and files, Thanks to @ostrolucky

  • #397 [EasyCodingStandard] Added validation to exclude_checkers option, Thanks to @mzstic

  • #431 [PackageBuilder] Added --level shortcut helper builder

Changed

  • #399 [Statie] Filter similarPosts renamed to relatedPosts, closes #386

Removed

  • #417 [CodingStandard] Dropped InjectToConstructorInjectionFixer, use @RectorPHP instead

  • #419 [CodingStandard] Dropped ControllerRenderMethodLimitSniff and InvokableControllerSniff, as related to SymbioticController

  • #432 [CodingStandard] Dropped NewClassSniff, use NewWithBracesFixer instead

  • #430 [EasyCodingStandard] Dropped --fixer-set and --checker-set options for show command

  • #412 [PackageBuilder] Removed Nette related-features, make package mostly internall for Symplify

  • #404 [SymbioticController] package deprecated, closes #402

Full diff: https://github.com/Symplify/Symplify/compare/v2.5.0...v3.0.0-RC1