Hola Chicos, como están?
Instale de cero este proyecto ahora por que el anterior me daba mucho errores.
Cuando instale Composer y voy a crearlo desde Cygwin en Windows 10 me dice esto:
Win10_@Anonymous /cygdrive/c/wamp/www
$ composer create-project symfony/framework-standard-edition
PHP Fatal error: Uncaught Error: Class 'Phar' not found in /cygdrive/c/composer/composer.phar:23
Stack trace:
#0 {main}
thrown in /cygdrive/c/composer/composer.phar on line 23
Despues me voy a ver Composer.phar de la linea 23 y me dice esto:
#!/usr/bin/env php
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <
nade...@naderman.de>
* Jordi Boggiano <
j.bog...@seld.be>
*
* For the full copyright and license information, please view
* the license that is located at the bottom of this file.
*/
// Avoid APC causing random fatal errors per
https://github.com/composer/composer/issues/264if (extension_loaded('apc') && ini_get('apc.enable_cli') && ini_get('apc.cache_by_default')) {
if (version_compare(phpversion('apc'), '3.0.12', '>=')) {
ini_set('apc.cache_by_default', 0);
} else {
fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL);
fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL);
}
}
--> 23 Phar::mapPhar('composer.phar');
--> 24 require 'phar://composer.phar/bin/composer';
Alguien sabe por qué no me deja crear el proyecto?