<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>phpcs Archives - george mastro</title>
	<atom:link href="https://georgemastro.com/tag/phpcs/feed/" rel="self" type="application/rss+xml" />
	<link>https://georgemastro.com/tag/phpcs/</link>
	<description>web developer, photographer, filmmaker</description>
	<lastBuildDate>Sat, 25 Oct 2025 20:39:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://georgemastro.com/wp-content/uploads/2016/02/cropped-mastro-avatar-square-32x32.jpg</url>
	<title>phpcs Archives - george mastro</title>
	<link>https://georgemastro.com/tag/phpcs/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Warnings on running phpcs -i for SublimeLinter</title>
		<link>https://georgemastro.com/warnings-on-running-phpcs-i-for-sublimelinter/</link>
		
		<dc:creator><![CDATA[mastro]]></dc:creator>
		<pubDate>Thu, 17 Jul 2014 15:25:41 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php linter]]></category>
		<category><![CDATA[phpcs]]></category>
		<category><![CDATA[sublime text]]></category>
		<guid isPermaLink="false">http://georgemastro.com/?p=48</guid>

					<description><![CDATA[<p>Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in /usr/bin/phpcs on line 31 Warning: include_once(): Failed opening &#8216;PHP/CodeSniffer/CLI.php&#8217; for inclusion (include_path=&#8217;.:&#8217;) in /usr/bin/phpcs on line 31 Fatal error: Class &#8216;PHP_CodeSniffer_CLI&#8217; not found in /usr/bin/phpcs on line 34 If you are seeing the above errors when running phpcs (PHPCodeSniffer) first thing you have [&#8230;]</p>
<p>The post <a href="https://georgemastro.com/warnings-on-running-phpcs-i-for-sublimelinter/">Warnings on running phpcs -i for SublimeLinter</a> appeared first on <a href="https://georgemastro.com">george mastro</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><code>Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in /usr/bin/phpcs on line 31</code></p>
<p>Warning: include_once(): Failed opening &#8216;PHP/CodeSniffer/CLI.php&#8217; for inclusion (include_path=&#8217;.:&#8217;) in /usr/bin/phpcs on line 31<span id="more-48"></span></p>
<p>Fatal error: Class &#8216;PHP_CodeSniffer_CLI&#8217; not found in /usr/bin/phpcs on line 34<br />
If you are seeing the above errors when running phpcs (PHPCodeSniffer) first thing you have to do is to make sure you have PHPCodeSniffer installed. To check this just open a Terminal and run:<br />
<code><br />
find / -type f -name 'CLI.php'</code></p>
<p>If you see in the results something like this &#8230;..lib/php/PHP/CodeSniffer/CLI.php then you have code sniffer installed. In case you haven&#8217;t then run <code>sudo pear install PHP_CodeSniffer</code> to install it.</p>
<p>Then all you have to do is to include the folder in your path. Just copy in your clipboard everyhing behind /PHP/CodeSniffer/CLI.php. In my case it was &#8220;/Applications/MAMP/bin/php/php5.4.26/lib/php&#8221; and paste it in your bash profile file which usually is ~/.bash_profile</p>
<p>So just type <code>nano ~/.bash_profile</code> and paste in there something like this:</p>
<p><code>export PATH=/Applications/MAMP/bin/php/php5.4.26/lib/php:$PATH</code></p>
<p>The post <a href="https://georgemastro.com/warnings-on-running-phpcs-i-for-sublimelinter/">Warnings on running phpcs -i for SublimeLinter</a> appeared first on <a href="https://georgemastro.com">george mastro</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
