Almost empty symfony install ( missing vendors except for flex ) - symfony

symfony new my-project
is supposed to install a basic working symfony app but it gives me a project that's almost empty, with only composer.json, composer.lock and a vendor directory with only symfony/flex.
composer.json does include symfony/framework-bundle, but the bundle is not in vendors.
Running composer install does not do anything, and doesn't give an error.

Installing php-zip solved it for me (required by composer).
Looks like it might not be installed by default on recent ubuntu php installations, and either composer or the symfony binary failed silently.
sudo apt install php-zip
# now install vendors
composer update

Related

I cant install a Specific version of Symfony using Composer

I want to install Symfony 4.0.6 version! using composer with cmd
when I write
composer create-project Symfony/framework-standard-edition Stage_App "4.0.*"
also tried
composer create-project Symfony/skeleton Stage_App "4.0.*"
and both install Symfony 5.0.2
note: I don't want to work with the last version! i just want to work with 4.0.6
how can I install that version?
since the 4.0.* of symfony version is deprecated, the symfony/skeleton creates a project on the 5.0 version.
Since 4.4.* version is always supported, you need to upgrade to 4.4 version and install project like this:
composer create-project symfony/skeleton Stage_App "4.4.*"
If you really want to get the 4.0.6 version you could always update all symfony dependencies in the composer.json and update them with composer update symfony/* but you will have other errors because folder architecture has changed so I do not recommend it.
As unfortunate as it's, you can't download version 4.0.6 anymore (tried it).
As for how to download an older version, the Symfony doc says to do this:
symfony new my_project_name --version=4.4

Error with composer when I want to install friendsofsymfony/elastica-bundle

I want to install friendsofsymfony/elastica-bundle via composer, but I got an error with symfony/flex. I tried to update symfony/flex via composer but always the same error and also composer load from the cache the version v1.0.80 but I have in the file composer.json the version 1.4.2 . I tried to uninstall composer and install it again but it's working too.
Thank you for your help. This is the error I find:

Composer out of memory after upgrade Sylius from 1.1.6 to 1.2.9

I have followed the instruction to upgrade Sylius from 1.1.6 to 1.2.9:
https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.2.md
Now, composer no longer working with error: out of memory
I have already set to memory_limit=-1 (unlimited) in php.ini
And composer working fine on another folder (I have install new Sylius with no issue)
My env:
Windows, Xampp, PHP 7.2.7, Symfony 3.4.18
composer v1.8.0
Anyone could help?
Try this maybe can help you :
php -d memory_limit=-1 composer.phar update

Installing and initializing symfony on ubuntu 18.04

I tried almost all the solutions provided on the internet. Nothing seems to work.it says
Your requirements could not be resolved to an installable set of packages.
Problem 1
-installation request for symfony/symfony v2.8.4.1 -> satisfiable by symfony/symfony[v.2.8.41].
-symfony/symfony v2.8.41 requires ext-xml *-> the requested PHP extension xml is missing from your system.
You didn't mentioned the system on which you run Symfony and which PHP version you use.
For Ubuntu with PHP 7 you just need to install the xml extension through apt: sudo apt-get install php7.0-xml
For Windows you can follow the guidelines in the PHP documentation
For Mac OS X you can use a package installer like Homebrew or use a tool which will install many package at once
After that, make sure the extensions are enabled in your PHP ini file.

Symfony 2.8 issue when i run config.php

when i access config.php in my browser i have following issue.
Configuration Checker
This script analyzes your system to check whether is ready to run Symfony applications.
RECOMMENDATIONS
To enhance your Symfony experience, it’s recommended that you fix the following:
intl ICU version installed on your system is outdated (4.2.1) and does not match the ICU data bundled with Symfony (57.1)
To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.
Try to install driver by :
if you use php5 do:
sudo apt-get install php5-intl
if you use php7 :
sudo apt-get install php7.0-intl
After restart apache
sudo /etc/init.d/apache2 restart

Resources