|
Sponsored Link
|
Gonzalo Ayuso has a new post to his site showing how you can set up and use environment variables to make different environments for your applications.If you use a framework such as Symfony2 this problem is solved for you, but if you aren't using any framework you probably need to solve it in one way or another. [...] The solution that I like for this kind of problem [with having different environments] is to use apache's environ variables. We inject the environ variables in the virtual host...
MongoDB and Drupal (@ DrupalCon)
London, UK
Monday, August 27th 2012, 09:17 BST
Last week I spend in Munich, Germany attending and speaking at DrupalCon. This was my first DrupalCon, and I have to say I was amazed with both the size (1800+ people) as well as the great community they have build. My main reason for going was to see how Drupal and MongoDB work together, and what we can do to make their integration better.
From my side, MongoDB related events were me presenting at the Munich MongoDB...
I spent the last week in DrupalCon Munich followed by FrOSCon, and gave a talk on the Decoupled Content Management story in both.
With DrupalCon I didn't really know what to expect. In past the community has been quite insular, a common trend among PHP projects. As part of Drupal 8, they're now opening up to new ideas and new code from outside the project. Using Symfony2 components is a great example of this.But how would they react to our front-end ideas, given their well-advanced homegrown Spark...
15 (Photo credit: el frijole)
Secure By Design is a simple concept in the security world where software is designed from the ground up to be as secure as possible regardless of whether or not it imposes a disadvantage to the end user. The purpose of this principle is to ensure that users who are not security experts can use the software without necessarily being obliged to jump through hoops to learn how to secure their usage or, much worse, being tempted into ignoring security concerns which...
With the release of vfsstream 1.1.0 a whole range of new features is introduced. First and foremost is support for new features which became possible with PHP 5.4, namely that 5.4 enables support for touch(), chown(), chgrp() and chmod() on stream wrappers. vfsStream 1.1.0 now supports these functions, which means they can be applied to vfsStream urls. This allows to test functions and methods which change file permissions or ownership.
Another new feature that came along with PHP 5.4 is support for...
PHPMaster.com is back with the third part of their series looking at Aspect Oriented Programming with the CodeIgniter framework. (Part 1, Part 2)In the previous parts of the series we learned about AOP concepts and the need for using AOP in large scale projects and I introduced CodeIgniter's hooks as a convenient mechanism for creating AOP functionality from scratch. In this part I'll show you how to use both XML and comment-based techniques to create custom AOP functionality when a dedicated AOP...
So a while back I wanted to add native support for API versioning to FOSRestBundle. While working on this I began to realize that this would really require supporting proper content negotiation. Note that while there is a spec for how to express the preferences of the client, there is no spec on "negotiating" between what the client wants and what the server has to offer. My current implementation is rather simple .. well simple is probably a euphemism for "incomplete to the point of being more than half...
There's a new project on Github that wants to help making your phar archives for your PHP applications. The process is a little obtuse right now and Box wants to simplify it.Box is a library and command line application for simplifying the PHAR creation process. [Features include] creating new PHARs with a simple configuration file, add and replace files in existing PHARs, extract existing PHARs, with option to cherry pick files and verify PHAR signatures.The project is still relatively young but it...
If you practice the TDD (test-driven development) methodology in your work, you know that sometimes switching back and forth between a terminal and your IDE can be distracting. In this new tutorial from NetTuts.com, they show you how to streamline things a bit with a simple Ruby script.Traditional test-driven development can, at times, be cumbersome. You have to stop writing code in order to run your tests. Luckily, there are solutions, which provide the ability to automatically run your tests as you...
In response to some questions he got from a student, Evan Coury has shared the answers to his questions about software development and engineering:I found his questions to be well-posed and thoughtful, so I figured I'd post my responses as a blog post. I'll be sending this post to Jordan, so if anyone has additional comments or advice for the kid, please feel free to leave some wisdom in the comments!Some of the questions include:
Describe the duties and responsibilities of someone working in software...
Popular posts from PHPDeveloper.org for the past week:Chris Hartjes: 5 Minute TDD
Reddit.com: Fastest MVC PHP Framework Benchmark
Matthew Weier O'Phinney: On Microframeworks
Chad Minick: PHP frameworks are obsolete
Lorna Mitchell: Skills Allied to PHP
Antonin Januska: How To Write Code Comments Well
Community News: CodeConnexx Conference (Nov 8th, 9th)
Timoh's Pages: Cryptography in web applications: a false sense of security?
PHPMaster.com: Explore Aspect Oriented Programming with CodeIgniter, Part 2...
Anna Filina has a quick new post to her site about the upcoming ConFoo conference happening February 25th through March 1st in Montreal, Canada.If you have never heard of ConFoo, it is one of the most important developer-oriented conferences. The team brings you speakers from around the globe to share their hands-on experience with various web technologies. The best news is: it's driven by the community and is non for profit!The call for papers opens on August 27 and is important even if you are not a...
The next ConFoo will be held on February 25 through March 1.
If you have never heard of ConFoo, it is one of the most important developer-oriented conferences. The team brings you speakers from around the globe to share their hands-on experience with various web technologies. The best news is: it's driven by the community and is non for profit!
The call for papers opens on August 27 and is important even if you are not a speaker. You can vote on all the proposals as they come in, telling the team...
There's another site tossing their hat into the "best practices in PHP" ring (the other being PHP The Right Way) with what they call a "short, practical list for common and confusing tasks" in PHP - PHPBestPractices.org.[Outdated tutorials and information is] one of the reasons why new PHP programmers are so frequently blamed for ugly, outdated, or insecure code. They can't help it if the first Google result was a four year old article teaching a five year old method! This document tries to address that....
If you're a git user and have thought about bringing things a bit more "in-house" than GitHub but still want some of the perks of the web-based interface, this quick tutorial from PHPMaster about installing Gitlist might interest you.aking your repositories available in a local intranet is pretty easy, but having a nice interface to interact with those repositories, making collaboration between teams easier, is not that simple. [...] There are other solutions available, but some are too hard to install...
In his most recent post Anthony Ferrara talks about service containers, the cousin of dependency injection containers (DIC) that he argues aren't much better than global variables.I am a firm believer that service containers are not a form of Dependency Injection, and are only slightly better than global variables. That led me to make a few comments that elicited a reply from two Fuel developers. That led to a rather interesting debate that just couldn't fit into 140 characters [on Twitter]... So I'm...
Here's what was popular in the PHP community one year ago today:Robert Basic's Blog: Importing Symfony2 security settings from a bundle
DashExamples.com: Add a Content Security Policy(CSP) to your Web Site with PHP
PHPBuilder.com: Getting Started with the Fuel PHP Framework
Christian Weiske's Blog: Working with .phar files
Lee Blue's Blog: What's The Best PHP Framework?
DashExamples.com: Capture Content Security Policy (CSP) Violations in PHP
Tutorialzine.com: Building a Website with PHP, MySQL and...
Yesterday, I got in an interesting conversation on twitter about object scopes and what constitutes a global scope. The discussion started around a piece of code that I stumbled upon from Fuel 2.0. I am a firm believer that service containers are not a form of Dependency Injection, and are only slightly better than global variables. That led me to make a few comments thatA elicitedA a reply from two Fuel developers. That led to a rather interesting debate that just couldn't fit into 140 characters... So...
Timo has a new post looking at cryptography in PHP and some of the common misconceptions and how that functionality that your framework provides might not be good enough.Does your framework of choice offer an easy way to perform data encryption? Maybe you have even utilized data encryption in some format. [...] It could not be much easier than that. It is hard to argue. But things won't stay as simple as this if you look at the meaning of "secure data encryption" a little bit closer. Usually people...
In this new post to his site Jeune Asuncion shows how he integrated several technologies to make for a robust system - Zend Framework (1.11), Doctrine 2 and the Symfony dependency injection system.Last week, I blogged about looking for a new application framework to use and more importantly the key things that I would want in one. After reading about the Zend framework, Symfony and Laravel and finding myself hesitant to use any one, I thought to myself why not get the best of each framework? So that's...
|
|