<?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>yeoman | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/tag/yeoman/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Thu, 10 Sep 2015 13:01:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>PHP package generators</title>
		<link>https://nerdpress.org/2015/09/10/php-package-generators/</link>
					<comments>https://nerdpress.org/2015/09/10/php-package-generators/#comments</comments>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Thu, 10 Sep 2015 12:59:19 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[grunt]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[yeoman]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=2656</guid>

					<description><![CDATA[<p>For creating PHP packages several best practices has been established, like composer support (ofc) and putting the package on packagist, travis integration, directory organisation, tests, documentation and so on. For further information i recommend these slides https://laravel-news.com/2015/08/hannes-van-de-vreken-package-development-slides/ which describe the situation very well. And as we are all lazy, we like generators that scaffold a &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2015/09/10/php-package-generators/" class="more-link">Continue reading<span class="screen-reader-text"> "PHP package generators"</span></a></p>
The post <a href="https://nerdpress.org/2015/09/10/php-package-generators/">PHP package generators</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>For creating PHP packages several best practices has been established, like composer support (ofc) and putting the package on <a href="https://packagist.org/" target="_blank">packagist</a>, <a href="http://travis-ci.org/" target="_blank">travis</a> integration, directory organisation, tests, documentation and so on.<br />
For further information i recommend these slides <a href="https://laravel-news.com/2015/08/hannes-van-de-vreken-package-development-slides/" target="_blank">https://laravel-news.com/2015/08/hannes-van-de-vreken-package-development-slides/</a> which describe the situation very well.</p>
<p>And as we are all lazy, we like generators that scaffold a basic php package layout and luckily there are several out there.<br />
They all differ a bit, so pick your favorite.<br />
<span id="more-2656"></span><br />
I personally like the <a href="https://github.com/thephpleague/skeleton" target="_blank">https://github.com/thephpleague/skeleton</a> package template.<br />
However its branded for the <a href="http://thephpleague.com/" target="_blank">League</a> and you would have to replace all occurences of phpleague with your namespace, which is kinda cumbersome.</p>
<p>So i wrote a <a href="http://yeoman.io/" target="_blank">yeoman</a> generator which automates this, Check it out here: <a href="https://github.com/ivoba/generator-phpleague-skeleton" target="_blank">https://github.com/ivoba/generator-phpleague-skeleton</a><br />
The generator will inquire your personal and package infos and basically just replace the counterparts in the phpleague skeleton.</p>
<p>If you are a yeoman fanboy, as i am :), there are two more, worth to mention:</p>
<p><a href="https://github.com/T1st3/generator-composer" target="_blank">https://github.com/T1st3/generator-composer</a><br />
and<br />
<a href="https://github.com/juliangut/generator-barephp" target="_blank">https://github.com/juliangut/generator-barephp</a></p>
<p>The package layout here doesnt differ much, the main difference is that they come with a grunt build.<br />
So you can use grunt to run f.e. phpDoc generation, phplint, phpunit or all at once on your package with f.e. <code>grunt test</code>.</p>
<p>If you dont like yeoman and want to keep it PHP, the slides i mentioned above show two alternatives:</p>
<p><a href="https://github.com/jonathantorres/construct" target="_blank">https://github.com/jonathantorres/construct</a><br />
<a href="https://github.com/franzliedke/studio" target="_blank">https://github.com/franzliedke/studio</a></p>
<p><strong>Studio</strong> seems to be more than a normal generator though. Its rather a managment tool for developing packages.<br />
So if you look for a generator only, <strong>Construct</strong> is probably the candidate here.</p>The post <a href="https://nerdpress.org/2015/09/10/php-package-generators/">PHP package generators</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2015/09/10/php-package-generators/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
