PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 30, 2022

[FIXED] How use the Pear installed packages in windows

 August 30, 2022     pear, php     No comments   

Issue

I have installed Pear and all the package I needed. (example like PHP_CodeSniffer, PhpDocumentor). I confirmed this package has installed using

C:\wamp\www>pear list

but when I try to use this comment on my windows comment prompt I am getting error like

'phpcs' is not recognized as an internal or external command 

Please give me any suggestion.


Solution

I have fixed this issue as per the below link.

Alternative way to install PHP_CodeSniffer is to clone repository from GitHub:

git clone git://github.com/squizlabs/PHP_CodeSniffer.git
cd PHP_CodeSniffer
php scripts/phpcs -h

http://blog.a2design.biz/blog/2012/08/19/automation-of-php-coding-style-check-using-git-hooks/



Answered By - Muthamizhchelvan. V
Answer Checked By - Clifford M. (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing