News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Geshan Manandhar:
5 PHP development improvements rediscovered in 2013
January 24, 2014 @ 11:54:20

Geshan Manandhar has a new post talking about five development improvements that were "rediscovered" in 2013 in the PHP community.

Love it or hate it, the fact is 80% of the web is PHP and its usage has been in an increasing trend since 2010. [...] In this process of having a robust back-end API, we have rediscovered and utilized some technologies inline with PHP development and improved on them in the past year. Here is a summary of these PHP related technologies/methods/best practices that will help all PHP developers.

The five things on his list are things that were around before 2013, but they all had much more of an effect in the past year than prior:

  • PHP Specification Request - PSR
  • Composer and Packagist
  • Virtual Development Environment - Vagrant
  • Debugging with X-Debug
  • Automated Testing with PHPUnit
0 comments voice your opinion now!
development improvement rediscovered 2013

Link: http://geshan.blogspot.ae/2014/01/5-php-development-improvements.html

Phil Sturgeon:
Solving the PHP Internals Workflow
September 12, 2013 @ 10:24:56

If you're not a subscriber to the php-internals mailing list, you may not know of several discussions happening right now. On of them relates to how the PHP project is currently run and include suggestions from a wide range of folks for improvements. Phil Sturegon has shared some of his own suggestions in a new post to his site.

On Monday I posted a tale of woe, which like any good tale had a moral at the end. The moral was that while PHP internals has its troubles, the troubles are really being perpetuated by a small few, and there is a clear path to solving the problems. [The PHP-FIG had similar problems and] It soon became incredibly clear that this approach would never work. We needed a workflow, and so does PHP.

He gets into some of the details behind the "growing pains" the PHP-FIG went through before defining their own workflow approach. He points out some of the problems with the workflow on the PHP side (defined here) but suggests that some of it could be avoided with a bit of tweaking. He also points out that the php-internals list "could be awesome" and that steps are already being taken (like improving news.php.net) towards that goal.

0 comments voice your opinion now!
internals workflow phpfig opinion improvement newsphpnet

Link: http://philsturgeon.co.uk/blog/2013/09/solving-the-php-internals-workflow

Ben Youngblood:
MVC Is Not Enough
September 04, 2013 @ 09:12:25

Ben Youngblood has a new post to his site suggesting that MVC is not enough to build good, robust applications (PHP or not) just because a good portion of the frameworks implement it.

With few exceptions, any software engineer worth his/her salt have at least heard of the model-view-controller pattern. It's been around since it was introduced to Smalltalk in the late 1970s and has been a staple pattern in object-oriented languages for as many years. Nearly all the leading PHP frameworks include some form of MVC implementation. With so many frameworks and developers espousing its use, you would think it's the best pattern for building your application. And you would be wrong.

He's not suggesting abandoning MVC altogether for something else. He just wants a reexamination of how it's being used and how to improve the structure of the applications using it. One option is to adhere more to the SOLID principles, avoiding things like domain logic in controllers and "fat" models with too much logic.

Chiefly, MVC is one part of your application, not your application. If you find that you are building your domain logic inside models, views, or controllers, then you are abusing MVC. No substantive application can, or should, be made to fit inside MVC.
0 comments voice your opinion now!
mvc opinion solid principles improvement

Link: http://blog.bjyoungblood.com/2013/08/21/mvc-is-not-enough

Simon Holywell:
Improve PHP session cookie security
May 14, 2013 @ 14:55:37

Simon Holywell has a new post talking about cookie security in PHP, focusing on some of the PHP configuration settings that can help.

The security of session handling in PHP can easily be enhanced through the use of a few configuration settings and the addition of an SSL certificate. Whilst this topic has been covered numerous times before it still bears mentioning with a large number of PHP sites and servers having not implemented these features.

He talks about the httponly flag when setting the cookie/in the configuration, the "use only cookies" for sessions and forcing them to be "secure only".

0 comments voice your opinion now!
session cookie security improvement tutorial phpini configuration

Link: http://simonholywell.com/post/2013/05/improve-php-session-cookie-security.html

Brandon Savage:
Making Conferences Better
February 28, 2013 @ 11:19:50

Brandon Savage has posted some ideas about making conferences better and how they can appeal to a wider (and maybe more inexperienced) level of developer.

I love PHP conferences. I attended a lot of PHP conferences when I was a brand new developer. Zendcon, OSCON, php[tek], Wordcamp Baltimore, DC PHP and others were my stomping grounds. I learned a lot, and the conferences I attended were on the whole useful, beneficial and wonderful experiences. But I also felt challenged by the fact that conferences don't offer much for bringing up new developers with concrete information and training. This isn't necessarily the fault of conferences: it's impossible to truly impart a useful skill into a developer with only a 45 minute talk.

He includes four ideas in the post and talks some about the role of training at the events:

  • Are conferences even the right place for training?
  • Creating Different Tracks of Different Lengths
  • Including Hands-On Training During Tutorial Days
  • Offer Learning-Focused Hackathons

He also notes that some of it is up to the developers to find a good fit for what they need and the skills they're looking to learn. There's other options out there besides just the usual conferences, too and, as Brandon states, "investing in your career is the most valuable thing you can do for yourself."

0 comments voice your opinion now!
conference suggestion improvement training tracks handson hackathon


Jacob Mather:
How to act like you (maybe actually) care about your work
October 09, 2012 @ 12:49:03

Jacob Mather has written up a (somewhat lengthy) post about things for developers to consider when wanting to improve at their jobs.

At Symfony Live San Francisco 2012, I gave a little talk. No, really. A little talk. Seven minutes. I'm not even sure I used all of it. That's not a lot of time, but I think I managed to at least provoke some thinking. At least I hope I did. Hmm. How do you act like you care about your work, as a developer?

He has the post broken up into several different categories including being involved in the community, continuing your education constantly, working with automation to make your day-to-day easier and what your real job is (hint, it has more to do with problems and less with code). He also includes a section with suggestions about dealing with coworkers of all different types - everything from management to designers.

0 comments voice your opinion now!
opinion work improvement suggestions developer


Symfony Blog:
Form Goodness in Symfony 2.1
July 30, 2012 @ 13:41:26

On the Symfony blog there's a new post from Bernhard Schussek about some of the changes that have happened in the Forms component of the Symfony 2 framework (in version 2.1).

Those of you who already upgraded to Symfony 2.1 Beta probably noticed that the new version comes with many backwards compatibility breaks in the Form component. Many of you probably ask yourselves: Why? The simple answer is that the Form component is one of the most complex components in Symfony at all.

They list out some of the improvements (plus code showing then at work) for changes like:

  • No more bindRequest()
  • Custom field constraints
  • Error mapping fu
  • Collection improvements
0 comments voice your opinion now!
symfony2 form component improvement


Lorna Mitchell's Blog:
Proof that PHP 5.4 is Twice as Fast as PHP 5.3
June 14, 2012 @ 10:04:55

In this quick post to her blog, Lorna Mitchell shares an interesting bit of benchmarking she did between PHP versions 5.3 and 5.4, finding 5.4 twice as fast as it's previous version sibling.

So recently I was working on some benchmarks for different versions of PHP, because I heard that PHP 5.4 is "faster" and since I'm a data geek I want to know how much faster! Now, PHP 5.4 is, in general, faster than PHP 5.3 but not twice as fast* unless you pick a use case which has been particularly optimised. My first attempt at benchmarking the two versions produced this. This was a surprise to me; was PHP 5.4 really so much faster??

Her benchmark was a pretty simple one - looping and creating a new object, evaluating the timing of how long it took to execute. A commentor also points to some more official benchmarks that were done and posted to the php.internals mailing list.

0 comments voice your opinion now!
speed version difference improvement create object benchmark


Touchdown Services Blog:
Phing development update 01/04/2012
April 03, 2012 @ 08:43:36

On the Touchdown Consulting Services blog, there's a new update posted about Phing, the popular PHP-based build tool and some recent advancements the project has made.

Roughly a month ago I posted the first in, what should become, a series of development updates concerning Phing. This second blog post details the most important updates during the past four weeks as Phing is moving steadily towards another release (2.4.10 is due out next week).

Updates mentioned in this post are:

  • User Guide starts move to DocBook format
  • Liquibase docs
  • PhpDocumentor
  • PHP 5.4 compatibility
  • PHAR package
  • Various (bug)fixes, the 2.4.10 release (listed)

Check out the full post for more details on each of these topics.

0 comments voice your opinion now!
phing build tool development update improvement bugs


Slawek Lukasiewicz's Blog:
New Features in PHP 5.4 - JSON Extension & header_register_callback
March 05, 2012 @ 10:16:20

In the first two posts of his "features new to PHP 5.4" series Slawek Lukasiewicz has posted about two things that weren't mentioned very often in most of the 5.4 hit lists - improvements to the JSON extension and the header_register_callback method.

About the JSON extension improvements:

By default, when we pass object to json_encode function, it will return JSON representation of object public properties. [...] PHP 5.4 introduces JsonSerializable interface with JsonSerialize abstract method. After implementing this method we can independently set values used in JSON representation.

Related to the header_register_callback addition

After looking at new functions introduced in PHP 5.4 we can found one called header_register_callback. Using it, we can register callback which will be called before sending output.

The stable version of PHP 5.4 has officially been released, so get out there and grab it and start using these new features now!

0 comments voice your opinion now!
improvement release feature json extension headerregistercallback callback



Community Events











Don't see your event here?
Let us know!


security example language release hhvm facebook framework podcast component composer project database hack package performance unittest install application introduction symfony2

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework