Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Creating a Symfony project using Debian packages

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Flamma
Posts: 4
Joined: 2015-12-29 20:05

Creating a Symfony project using Debian packages

#1 Post by Flamma »

I'm trying to learn Symfony.

Instead of downloading the symfony installer, I'm trying to use the Debian packages. But when following the tutorial, for creating a new project, I should execute the following command:

$ symfony new my_project_name

But Debian doesn't find the symfony command even when the package php-symfony and dependencies is installed.

None of the help I have found on Internet use Debian packages, even on those designed for Debian.

How should I create the project?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Creating a Symfony project using Debian packages

#2 Post by stevepusser »

Hmmm

Have you installed pear-channels?

There are no Debian packages that contain a "symfony" command, but maybe that package has instructions to create an alias for one.
MX Linux packager and developer

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Creating a Symfony project using Debian packages

#3 Post by GarryRicketson »

from:http://symfony.com/doc/current/book/installation.html
Installing the Symfony Installer¶

Using the Symfony Installer is the only recommended way to create new Symfony applications. This installer is a PHP application that has to be installed in your system only once and then it can create any number of Symfony applications.
It kind of sounds like a case where it might be best to just use their installer, if there is not a installer in the Debian Pacakges.

If the installer doesn't work for you or doesn't output anything, make sure that the Phar extension is installed and enabled on your computer.
Did you try installing this Phar extension as well ?

If you need to install, with out the installer, this may be of help, but you need to read it very carefully.
http://symfony.com/doc/current/book/ins ... -installer
Pay particular attention to where it says to use the specific version number, in the command. Be sure you have noted the version number.
Example :

Code: Select all

$ symfony new my_project_name 2.8
Just curious, I wonder if you got any manual with the packages.
Try :

Code: Select all

man symfony
================================
I notice the PHP5 packages for Debian , do include this Phar extension
php5-cgi
php5-cli,
php5-fpm
And there is more details here : http://php.net/manual/en/intro.phar.php

The following extensions are built in: bcmath bz2 calendar Core ctype date
dba dom ereg exif fileinfo filter ftp gettext hash iconv json libxml
mbstring mhash openssl pcre Phar posix Reflection session shmop SimpleXML
soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml
xmlreader xmlwriter zip zlib.

Post Reply