Download the PHP package pierre-arthur/sylius-upgrade-analyzer without Composer

On this page you can find all versions of the php package pierre-arthur/sylius-upgrade-analyzer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-upgrade-analyzer

Sylius Upgrade Analyzer

Packagist Version PHP Version Symfony Version CI

Automated migration audit & auto-fix CLI for Sylius 1.x to 2.x projects.

Sylius Upgrade Analyzer scans your existing Sylius 1.x project, detects every breaking change, deprecated API, and incompatible pattern, then produces a detailed migration report with time estimates, fix suggestions, and 45 automatic corrections covering the most common migration tasks.

Coverage is built from the official UPGRADE-2.0.md, UPGRADE-API-2.0.md, and CHANGELOG-2.0.md. Nothing is left unchecked.

Web service available at sylius-upgrade-analyzer.dev -- upload your composer.json, get a professional PDF report with time estimates and migration roadmap.


Features

49 Built-in Analyzers

Templates & Frontend (6)

# Analyzer What it detects
1 Twig Template Override Overridden Sylius templates to migrate to Twig Hooks
2 Sonata Block Event sonata_block_render_event() / sylius_template_event() to replace with hook()
3 Semantic UI Semantic UI CSS classes in templates (removed in 2.x)
4 jQuery jQuery / Semantic UI JS usage in assets
5 Webpack Encore webpack.config.js + @symfony/webpack-encore detection
6 Use Webpack Config Removed use_webpack from sylius_ui config

Deprecations & Breaking Changes (35)

# Analyzer What it detects
7 Winzou State Machine winzou/state-machine-bundle to Symfony Workflow
8 SwiftMailer swiftmailer/swiftmailer to symfony/mailer
9 User Encoder security.encoders and getSalt() methods
10 Payum Payum gateway to Payment Requests
11 Message Bus Rename sylius_default.bus / sylius_event.bus renames
12 Command Handler Rename src/Message/ to src/Command/
13 Deprecated Email Manager Removed OrderEmailManager / ContactEmailManager
14 Removed Payment Gateway Stripe / PayPal Express removed from core
15 Service Decorator Decorators targeting renamed Sylius services
16 Order Processor Priority Priority conflicts (40-60 range)
17 Form Type Extension Priority Missing explicit priorities
18 Behat Context Deprecation 10+ deprecated Behat contexts
19 Admin Menu Event Event-based admin menu system changes
20 Translation Key Renamed sylius.ui.* / sylius.form.* / sylius.email.* keys
21 Promotion Rule Checker PromotionRuleCheckerInterface changes
22 Shipping Calculator CalculatorInterface changes
23 Doctrine XML Mapping *.orm.xml to PHP attribute migration
24 Custom Fixture Fixture system changes
25 Multi-Store Channel findOneByHostname deprecation, locale contexts
26 Bundle Configuration 7 removed bundles + 6 required new bundles in bundles.php
27 Calendar to Clock sylius/calendar to symfony/clock (ClockInterface)
28 Security Firewall new_api_admin_user / new_api_shop_user firewall renames
29 User Model Field Removed locked, expiresAt, credentialsExpireAt, \Serializable
30 Removed Class 150+ removed classes (Templating Helpers, UiBundle, DataCollectors, etc.)
31 Renamed Service ID 21 renamed/removed Sylius service IDs
32 Removed Route 43 removed admin/shop routes (partials, AJAX, etc.)
33 LiipImagine Config Resolver/loader "default" to "sylius_image"
34 Constructor Signature 24 classes with changed constructor signatures
35 PHP Node Version PHP 8.2+, Node.js 20+, Symfony 5.4 detection
36 Class Move 14 classes moved between bundles
37 Service Visibility Direct $container->get('sylius.*') calls (now private)
38 Payment Request Env Missing Messenger transport env vars for payments
39 Deprecated Bundle Package 7 removed packages (FOSRest, JMSSerializer, BazingaHateoas, etc.)
40 Removed Config Key Removed YAML config keys (sylius_core.*, sylius_api.*, MongoDB/PHPCR ODM)
41 Routing Import Legacy routing imports (Payum shop routes, API route parameter renames)

Plugins (1)

# Analyzer What it detects
42 Plugin Compatibility Sylius plugins cross-referenced with Addons Marketplace + Packagist

Grid & Resource (3)

# Analyzer What it detects
43 Grid Customization Custom grid YAML + PHP grid classes + custom columns/filters
44 Resource Bundle SyliusResourceBundle config, custom factories/repositories
45 Grid Filter Entity type: entities to type: entity, field: to fields: syntax

API Platform (4)

# Analyzer What it detects
46 API Platform Migration @ApiResource, DataProvider/DataPersister, ApiPlatform\Core namespace
47 API Serialization Group Missing sylius: prefix on serialization groups
48 API Endpoint Restructure 8+ restructured/removed API endpoint paths
49 API Query Extension Signature $operationName to Operation $operation parameter change

6 Output Reporters

45 Auto-Fixers

Fixer Confidence What it fixes
Twig Hook Fixer HIGH Generates sylius_twig_hooks YAML config for template overrides
Workflow Migration Fixer MEDIUM Converts winzou state machine YAML to Symfony Workflow config
Security Config Fixer HIGH Replaces security.encoders with security.password_hashers and simplifies getSalt()
Message Bus Fixer HIGH Renames bus references in YAML and PHP files
Command Handler Fixer HIGH Updates namespaces from Message\ to Command\
SwiftMailer Fixer HIGH Converts Swift_Message to Email, Swift_Attachment to DataPart, updates YAML config
Renamed Service ID Fixer HIGH Replaces 11 old Sylius service IDs + 2 prefix renames in YAML
Security Firewall Fixer HIGH Renames new_api_admin_userapi_admin, new_api_shop_userapi_shop
LiipImagine Config Fixer HIGH Replaces resolver/loader "default" with "sylius_image"
Sonata Block Event Fixer MEDIUM Replaces sonata_block_render_event() / sylius_template_event() with hook()
Grid Filter Entity Fixer HIGH Replaces type: entities with type: entity in grid YAML
Use Webpack Config Fixer HIGH Removes use_webpack from sylius_ui YAML config and Twig conditionals
Calendar to Clock Fixer HIGH Replaces DateTimeProviderInterfaceClockInterface, sylius/calendarsymfony/clock
Class Move Fixer HIGH Updates 9 moved FQCN references between Sylius bundles
Removed Class Fixer MEDIUM Comments out use statements for 150+ removed classes with TODO markers
Bundle Config Fixer HIGH Removes 7 deprecated bundles and adds 5 required new bundles in bundles.php
Deprecated Bundle Package Fixer HIGH Removes 6 deprecated packages from composer.json
User Encoder Fixer HIGH YAML: encoderspassword_hashers + algorithm; PHP: getSalt()return null
API Endpoint Restructure Fixer HIGH Replaces 3 restructured API endpoint paths
Removed Route Fixer MEDIUM Comments removed route references in PHP and Twig with TODO markers
Payment Request Env Fixer HIGH Adds 2 required Messenger transport env vars to .env
Routing Import Fixer HIGH Replaces 7 old routing imports and parameter names
Removed Config Key Fixer HIGH Comments 7 removed YAML config keys with TODO markers
Translation Key Fixer MEDIUM Replaces 5 renamed translation key prefixes (sylius.ui.adminsylius.admin, etc.)
Behat Context Fixer MEDIUM Renames deprecated Behat context classes
API Serialization Group Fixer MEDIUM Adds sylius: prefix to 4 serialization group pairs
API Query Extension Signature Fixer MEDIUM Updates $operationNameOperation $operation parameter + use statement
Form Type Extension Priority Fixer MEDIUM Adds getPriority() method when getExtendedTypes() exists
Order Processor Priority Fixer MEDIUM Adds priority in YAML tags + getPriority() in PHP
Deprecated Email Manager Fixer MEDIUM Replaces 4 deprecated email manager interface FQCNs
Admin Menu Event Fixer MEDIUM Replaces 3 old admin menu event names
Service Decorator Fixer MEDIUM Updates decorates: with renamed controller service prefixes
Removed Payment Gateway Fixer MEDIUM Comments stripe_checkout and paypal_express_checkout configs
Shipping Calculator Fixer MEDIUM Replaces DelegatingCalculatorInterfaceCalculatorInterface
Promotion Rule Checker Fixer MEDIUM Moves CartQuantityRuleChecker from Promotion to Core namespace
Payum Config Fixer MEDIUM Comments payum: YAML root key and Payum use statements in PHP
Grid Customization Fixer MEDIUM Replaces field:fields: + doctrine/ormdoctrine_orm
Resource Bundle Fixer MEDIUM Replaces doctrine/orm driver format, comments PHPCR/MongoDB drivers
API Platform Migration Fixer MEDIUM Updates 7 namespace replacements (Core → Metadata/Symfony) + annotation → attribute
Multi-Store Channel Fixer HIGH Replaces findOneByHostname() with findOneEnabledByHostname()
Constructor Signature Fixer MEDIUM Adds TODO markers on overridden constructors of 24 changed Sylius classes
User Model Field Fixer MEDIUM Comments deprecated locked, expiresAt, credentialsExpireAt fields and Serializable
Doctrine XML Mapping Fixer LOW Adds TODO marker for *.orm.xml to PHP attribute conversion

GitHub Action

Run the analyzer in your CI pipeline, post PR comments, and upload SARIF to GitHub Code Scanning.

Additional Features


Installation

Requirements: PHP 8.2+, Symfony 6.4 or 7.2.


Usage

Basic Analysis

Output Formats

Project Naming

Filtering Analyzers

Verbose Output

Offline Mode

Custom Rules

Baseline Management

Sprint Planning

Upload Report for PDF Generation

Tip: You can also upload directly on sylius-upgrade-analyzer.dev without an API key for a one-time report.

Multi-Project Analysis (Agency)

Compare Reports

Report History (Agency)

Webhook Management (Agency)


Auto-Fix

The analyzer can automatically fix certain issues:

Each fix has a confidence level:

In --dry-run mode, the tool generates a unified diff patch showing what would change without writing any files.


GitHub Action

Add the analyzer to your CI workflow:

Action Inputs

Input Default Description
project-path . Path to the Sylius project
target-version 2.2 Target Sylius version
fail-on-breaking true Fail the job if breaking issues are found
upload-sarif false Upload SARIF report to GitHub Code Scanning
post-pr-comment false Post a summary comment on the PR

Action Outputs

Output Description
complexity Detected complexity level (trivial, moderate, complex, major)
total-hours Estimated total hours
breaking-count Number of breaking issues

Custom Rules

Create a .sylius-upgrade-rules.yaml file at the root of your project:

Supported rule types: php_class_usage, php_method_call, twig_function, yaml_key.

See docs/custom-rules.md for the full reference.


Example Output

Console

JSON


Compatibility Matrix

Check the compatibility matrix for Sylius plugins:


Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines on:


Documentation


Pricing

The CLI tool is free and open-source (MIT License). Advanced features are available via sylius-upgrade-analyzer.dev:

Plan Price Includes
Report 59 EUR (one-time) 1 professional PDF report with migration roadmap
Studio 299 EUR/year Unlimited reports + white-label PDFs (agency logo, colors)
Agency 799 EUR/year Studio features + 4 seat keys + multi-project consolidated reports

License

This project is licensed under the MIT License. See the LICENSE file for details.


Author

Pierre-Arthur Demengel -- [email protected]


All versions of sylius-upgrade-analyzer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
nikic/php-parser Version ^5.0
symfony/console Version ^6.4|^7.2
symfony/finder Version ^6.4|^7.2
symfony/http-client Version ^6.4|^7.2
symfony/yaml Version ^6.4|^7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pierre-arthur/sylius-upgrade-analyzer contains the following files

Loading the files please wait ...