I guess I am not the only one who has one or more RSS collection on which I don’t want to read all the news. Only scroll through and check if something interesting catches my attention.
Those are the perfect collections for me to check while I am eating or just taking my break near the computer. Even more perfect if I don’t have to click for the news to change!
I played around a little with Laravel, a couple of years ago, during their version three, but then I ended up diving deep into the Yii Framework instead (work related reasons).
Recently, I decided to go back into it, after they release the version 5, and I was surprised with the huge rise that it had in terms of community and learning resources.
The following list of resources was compiled , for personal use, during my initial research to get up to speed with the new version of the framework. So, if you are trying to getting evolved with Laravel now, check this list first! 😉
Hi there! In this quick tutorial we will see how to create a package for your PHP class/library with composer and publish it on packagist.org.
You probably are already using composer to manage dependencies in your projects and search for packages to speed up your development.
And guess what… creating your packages and giving back to the PHP community is as easy as requiring them!
Before we start…
(Skip this part if you already have composer installed and you project code on a version control system)
You will need composer installed on your system to create and test your packages so, if you don’t have it already, let’s go ahead and install it.
I recommend you install composer globally so then you can access it in any directory by just typing composer:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
# After it finishes, test it!
Although, if you are on windows or just want a to install composer locally for your project, you can check their quick start guide.
Why this post?
I know, I know! You’re thinking: “It’s 2015!! Who doesn’t know how to work with github?”
But unfortunately, I still find myself talking with my developer friends and see them talking about the new widget or plugin they developed for some framework they use and I always ask:
“Wow that seems really nice, are you thinking about sharing that on github or something?”
And almost always I get the same response:
“Hum no, I don’t usually do that…” or worst, “I never used github…”
How? And why? Since it only takes 4, very simple steps, to share your code on gihub.