where to run symfony2 debug commands? [duplicate] - symfony

This question already has answers here:
How to command run for symfony2 in windows 7
(2 answers)
Closed 9 years ago.
Currently I am new to symfony2, I was just going through the basics and while reading the "The book" from symfony I came across some commands which can be used to debug the application like following commands
$ php app/console router:match /blog/my-latest-post
$ php app/console router:debug
So my question is:
1) From where to run these commands, from commandline?
2) How do you run them, is there something we need to install or some dependency?
Currently I am using WAMP server on windows 7 machine, just a localhost.

From command line, from your project. Check How to command run for symfony2 in windows 7
We use composer for update dependency. Chechk How to install Symfony2 Bundles with Composer

Related

"symfony" command don't work on fedora (symfony : command not found)

I'm working on Linux fedora and I want to use Symfony for a project.
I already installed Symfony, but when I use Symfony commands it doesn't work (command not found).
My goal is to run a server by using this command symfony server:start
The 2 commands I tried (sorry my shell is in French)
package php-symfony-2.8.52-3 already installed
Dependencies solved
Nothing to do
bash : symfony : command not found
You have installed a very old version of the Symfony framework but, you are trying to use the Symfony CLI binary.
Run this installer to create a binary called symfony:
wget https://get.symfony.com/cli/installer -O - | bash
— https://symfony.com/download
Check the setup guide for further reference.

I can't start a Symfony project in PhpStorm

After 3 years I start using PhpStorm again, my first think is using Symfony 4.x with PhpStorm. But I can't start any project from Terminal on MacOS Mojave.
I have installed all plugins: Symfony, PHP Annotation, PHP Toolbox
Also I have install Symfony from Terminal also Composer.
When I search with ls in the Terminal Symfony isn't shown there.
In Finder I can see it as hidden file .symfony
trying to go in the director like cd /.symfony also not found also does not work
I think you are speaking about the symfony cli which does not have anything to do with PHPstorm.
Go to https://symfony.com/download and install the symfony cli
curl -sS https://get.symfony.com/cli/installer | bash
The symfony cli should work without any problems after following these steps.
EDIT:
Don't forget to follow the steps written after installing the cli
Add this to your shell configuration file:
export PATH="$HOME/.symfony/bin:$PATH"
Start a new shell, and then run 'symfony'
you have to add that line at the end of your ~/.bashrc file

What is the DotNet CLI 'Tool' command? [duplicate]

This question already has answers here:
No executable found matching command "dotnet-tool"
(2 answers)
Closed 4 years ago.
I'm trying to get the library based Identity pages scaffolded into my project, and the MS docs say use this command to start with:
dotnet tool install -g dotnet-aspnet-codegenerator
Yet when I type that command, I get back the error:
No executable found matching command "dotnet-tool"
Is this tool something I need to have installed or what?
'dotnet tool' is used to install .NET Core global tools. Try to specify --global or provide a path so it knows where to be installed. Paths are done using --tool-path I believe.

Change CLI's php

Im working with Symfony2. Im trying to execute the following command:
php app/console doctrine:database:create
The problem is that I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/apc.so' - dlopen(/opt/local/lib/php/extensions/no-debug-non-zts-20090626/apc.so, 9): image not found in Unknown on line 0
Could not create database for connection named <comment>symfony</comment>
could not find driver
APC is already installed, since the Symfony/web/config.php was OK, what I realised is that the version of php from CLI is different from the one Apache is running.
The one Apache is running has APC installed, so I would like CLI to run that same php, How can I do that?
in my case deleting the version that macports installed was enough to have CLI and Apache run the same PHP.
And that's:
sudo port uninstall php5

Is it possible to install PHPUnit without pear? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
PHP - Is there a portable version of PHPUnit?
On a Red Hat Linux machine, without root privileges, so can not use pear.
Manual download leads to https://github.com/sebastianbergmann/phpunit/, but this seems a windows version since the executable is a phpunit.bat.
Is there a way to install PHPUnit on Linux without PEAR?
I have made an installer for this: https://github.com/kblomqvist/gitinstall-phpunit
Further down on the same page, it says how to install PHPUnit from a git checkout:
PHPUnit from a git checkout

Resources