i want to kwow the real difference these two command implicate :
symfony new my_project_name --full
composer create-project symfony/website-skeleton my_project_name
anyone could teach me ?
i want to kwow the real difference these two command implicate :
symfony new my_project_name --full
composer create-project symfony/website-skeleton my_project_name
anyone could teach me ?
It does doesn't matter which way you go. Both commands will get you to the same place.
Composer is a dependency manager.
composer create-project is equivalent to:
git clone some/project which creates a local copycomposer install which installs the project's dependencies.Composer Example
Let's say you have the following project:
In the hello-script.php:
<?php
//hello-script.php
require "vendor/autoload.php";
use \Doctrine\Common\Inflector\Inflector;
echo 'hello script';
echo Inflector::ucwords('hello script', '-_ ');
In the composer.json file:
{
"require": {
"doctrine/inflector": "^1.3"
}
}
To pull down the hello-script dependency Inflector you would run:
composer install
Results
To test you can run php hello-script.php on your command line.
//Output
hello script
Hello Script
Symfony is a framework. It is a suite of tools for generating and serving a web application. The Symfony commands give you the ability to create new projects, serve the projects.