 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Jordi Boggiano: Composer an update on require-dev
by Chris Cornutt March 04, 2013 @ 12:38:33
Jordi Boggiano has a new post to his site about a recent update to the Composer tool that can help make managing development-only dependencies a bit easier.
Using require-dev in Composer you can declare the dependencies you need for development/testing. It works in most simple cases, but when the dev dependencies overlap with the regular ones, it can get tricky to handle. In too many cases it also tends to just fail at resolving dependencies with quite strange error messages. Since this was quite unreliable, I set out to rework the whole feature this week-end. The patch has been merged, and it fixes six open issues which is great.
Additionally, to make it easier to work with the development dependencies, they'll by default be installed when you run an "update" in your repository. If you don't want them, you can still use "--no-dev". Also, Composer will manage them in a seperate section from the normal "require" packages. If you're not using Composer to manage your application's dependencies, look over on getcomposer.org for more details.
voice your opinion now!
composer requiredev update install workflow nodev dev
NetTuts.com: Better Workflow in PHP With Composer, Namespacing, and PHPUnit
by Chris Cornutt January 21, 2013 @ 10:49:15
On NetTuts.com there's a new screencast posted showing you a good way to create a better workflow in your PHP development using Composer and PHPUnit.
In this video tutorial, we'll again focus on workflow. Specifically, we'll use Composer's built-in autoloading capabilities, along with namespacing, to make for an elegant testing experience. We'll also review a handful of PHPUnit best practices, as we get setup with these tools.
He shows you how to use Composer to load in the packages from other projects (as well as your own) and using PHPUnit to execute unit tests for your application. He uses test-driven development, but it's not a required part of the workflow. He helps you create a simple "Calculator" test. He also shows how to manually modify the Composer classmap to load in your own classes.
voice your opinion now!
workflow screencast phpunit composer namespace tdd unittest
Adam Patterson's Blog: DIY simple staging server.
by Chris Cornutt October 21, 2011 @ 10:29:41
Adam Peterson has posted an interesting idea for those out there running an internal staging server they want to constantly keep up to date with the main line of code (without manual intervention) - a git pull web frontend combined with git post-receive hooks.
This [move from svn to git] left a bit of a gap in my process where I could no longer test on a remote server without updating it manually by S/FTP or opening terminal and manually calling a git pull. Open terminal and manually git pull it did break up the work flow a bit so using the Dingo framework I created a very simple Git helper and gave it its own URL something like git/pull.
He added a post-receive hook to his git server that calls this "git/pull" URL on the staging server and updates the code on the server. This provides an easy asynchronous way to update things on another server. Note, though, that this should never be done on a publicly accessible server - it's a pretty large security hole (or at the very least made secure somehow). He used Dingo to create his interface, but something like the Slim micro-framework could have worked just as well. You can view his code on github.
voice your opinion now!
git pull workflow staging server postreceive hook
Smashing Magazine: Cleaning Up The Mess How To Keep Your Coding Workflow Organized
by Chris Cornutt January 21, 2011 @ 10:47:10
On the Smashing Magazine site today Brian Hoyt has some suggestions for you to use to keep your workflow organized when developing your applications (code, file structure, assets, database, etc).
Perhaps in the past you've tried to build a more complex, cutting-edge website like [our example], and the project started off with great enthusiasm, but ended up in a nightmarish mess that you couldn't maintain. Your client lost interest when new features started getting too hard to add, and you started having to work late at night, tracking down bugs that you couldn't even find the relevant file for. After a project like that, it's not hard to see the relevance of a well-organized website project.
He talks about some general principles like "don't over-organize" and "don't mix aspects of the site" as well as some more specific things like a website size to structure recommendation and parts of a site and how to handle them - assets, stylesheets, javascript, the database structure/values and, of course, the code.
voice your opinion now!
organized opinion workflow website structure
Zend Developer Zone: Zend Framework Dispatch Workflow Diagram
by Chris Cornutt May 13, 2009 @ 08:47:33
In this new post to the Zend Developer Zone, they point out a workflow diagram Polley Wong has come up with showing how the Zend Framework's dispatch system works (request handling).
I've been researching Zend Framework lately and was curious about what's actually happening behind the scene of the whole dispatch process. Inspired by Thorsten Ruf's (zenddispatch_en.pdf) clear and beautifully presented workflow, I decided to go a step deeper and crawl Zend Framework's code. I came up with my own version of the flexible yet complicated workflow.
You can check out this new PDF here. It diagrams out an overall view of the request handling, a look at what happens inside the front controller including components like the Controller Dispatcher, Action Controller, Action Helper Broker and Response Object.
voice your opinion now!
zendframework dispatch workflow diagram polleywong
KillerPHP.com: What is Source Control and Why Should I Use It?
by Chris Cornutt November 06, 2007 @ 12:54:00
On the KillerPHP.com website today, there's a good beginner's guide (from J. Lenensold) about using version control in your development - specifically Subversion.
As projects start to get a little larger, it becomes crucial that you manage your code in an easy and organized manner. Using subversion is a breeze with tools like TortoiseSVN on windows and SCPlugin on the mac.
This article is an attempt at introducing the concept of SVN. There are many great tutorials out there that outline the steps for installing SVN on windows, mac and linux.
He talks about why using version control is a good thing, how it can speed up testing and even relates it back to PHPers with a sample workflow (with graphic) and some helpful hints as you introduce this very handy functionality into your development process.
voice your opinion now!
sourcecontrol subversion development workflow sourcecontrol subversion development workflow
|
Community Events
Don't see your event here? Let us know!
|