Categories
Book Study Recommendation Books Symfony

BOOK : mastering symfony – Take away

Categories
Symfony Web API

Symfony profiler – Remove PHP Warning and PHP Notice errors

modify following file -> /web/app.php

Add following arguments

use Symfony\Component\Debug\Debug;

Debug::enable(E_ERROR);

$kernel = new AppKernel($environment, true);
Categories
Programming Scalability Symfony

Symfony Profiler – enjoy programming – symfony helper

http://symfony.app/_profiler

Categories
BEST PHP CODE Symfony Technical

Upgrading from 3.3.2 to Symfony 4.1

Use symfony profiler great help for upgrade

../_images/deprecations-in-profiler.png

Update to the New Major Version via Composer¶

Once your code is deprecation free, you can update the Symfony library via Composer by modifying your composer.json file:

1
2
3
4
5
6
7
8
{
    "...": "...",

    "require": {
        "symfony/symfony": "^4.1",
    },
    "...": "..."
}

Next, use Composer to download new versions of the libraries:

 composer update symfony/symfony

Dependency Errors¶

If you get a dependency error, it may simply mean that you need to upgrade other Symfony dependencies too. In that case, try the following command:

 composer update "symfony/*" --with-all-dependencies

This updates symfony/symfony and all packages that it depends on, which will include several other packages. By using tight version constraints in composer.json, you can control what versions each library upgrades to.

Categories
Symfony

Symfony Helpers

Clear Cache

php bin/console cache:clear –no-warmup

Categories
Apache Symfony Technical Web API

Performance Symfony Loading

ab – Apache HTTP server benchmarking tool

ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.

See following website : https://httpd.apache.org/docs/2.4/programs/ab.html

ab -n500 -c20 -H

Categories
Symfony

List Symfony Routes

php bin/console debug:router
Categories
Symfony

Command to find out Symfony version

composer show

symfony/symfony v3.3.2 The Symfony PHP framework