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

Wojciech Sznapka:
Injecting repositories to service in Symfony2
October 17, 2013 @ 11:45:54

Wojciech Sznapka has an interesting new post to his site today talking about injecting repositories into services in Symfony2-based applications. By injecting just a single repository instead of the entire EntityManager, you get a cleaner, more clear interface defined in the code.

It is generally a good idea to wrap business logic into services. Often, such services methods uses doctrine's repositories to operate on data storage. Injecting whole EntityManager service is very popular approach, but it isn't the most elegant way I could think of. EntityManager works only as a factory in that case and could lead to usage of other repositories, which might end up with too many responsibilities of given service.

He includes some code to illustrate his point - both a "services.xml" configuration of the related dependency injection container and a custom entity repository (defined in the config). He then shows how this repository (FooRepository) would be injected into the service (FooService) via constructor injection.

0 comments voice your opinion now!
symfony2 repository injection configuration tutorial entity manager

Link: http://blog.sznapka.pl/injecting-repositories-to-service-in-symfony2/

Reddit.com:
Composer still susceptible to remote code execution via MITM
October 03, 2013 @ 11:26:15

In this recent post to Reddit.com, a point is brought up about the popular PHP package manager, Composer about it being susceptible to a common attack called the "Man in the Middle". This issue on the project's Github repository talks more about it:

Composer runs code from HTTP sources without validating the source of the download or the code downloaded. As such, trivial man-in-the-middle attacks through any number of vectors (dns, networking, local server exploit, etc) will result in execution of code of an attackers choosing at the userlevel of the user running composer. (Typically a developer account)

Replace getcomposer.org for a given network perspective by replacing it with a malicious http instance (eg by changing the DNS locally, at the lan, at an isp or hosting provider dns resolver, or globally or equally easily by replacing a route to the legitimate server (eg arpspoof)) . The http server instance is configured to serve a malicious /composer.phar and a /version url that produces random data. When users run self-update, the malicious code will be downloaded and run as the user that is executing the self-update command.

As of yet some patches and ideas have been proposed to correct this issue, but it hasn't been resolved and is currently listed as a "blocker" on the project. One suggestion, signing packages, seems to be the front-runner in the current discussion, something that package managers for other languages have already implemented (like npm for Node.js and pip for Python).

0 comments voice your opinion now!
composer package manager remote code execution attack maninthemiddle mitm

Link: http://www.reddit.com/r/PHP/comments/1nkmw8/composer_still_susceptible_to_remote_code/

Dayle Rees:
Composer primer
April 15, 2013 @ 12:55:09

For those that might have heard about the Composer package management system for PHP but haven't had the time to get into it, you should definitely check out this great primer from Dayle Rees.

Composer is something special in the world of PHP. It has changed the way we handle application dependencies, and quelled the tears of many PHP developers. You see, in the olden days, when you wanted to build an application that relied on third party dependencies you would have to install them with PEAR or PECL. These two dependency managers both have a very limited set of outdated dependencies and have been a thorn in the side of PHP developers for a long time. [...] Enter composer, king of the package managers.

He jumps right in and gets into the configuration (the composer.json file) and using it to describe the package. He shows how to set up "required" resources complete with version number information. There's a bit about setting up autoloading and classmaps too. He then moves on to getting the tool installed and using the composer.json definition to load in needed packages (and development ones if needed).

0 comments voice your opinion now!
composer package manager primer configuration usage

Link: http://daylerees.com/composer-primer

MaltBlue.com:
Zend Framework 2 Event Manager - A Gentle Introduction
January 15, 2013 @ 13:19:50

Matthew Setter has a new post to his site for those wanting to take their first steps into Zend Framework 2. In it, he gives a gentle introduction to the Event Manager part of the framework - what its role is and how to customize it to your needs.

Enjoying the introduction to Zend Framework 2? I hope so. In part one of the series, we looked at Dependency Injection, otherwise know as the Inversion of Control principle. Then, in part two, we looked at Modules and the ModuleManager, the next key aspects. In this part, we started to work through what they are and stepped through how to build one from scratch; along with some pointers for taking them further. In this, the 3rd of 4 parts, I'm taking you through the next key aspect of the framework - the EventManager.

He starts with a graphic showing its overall functionality - an implementation of the Observer design pattern - and a general description of its goal (basically, execute code when actions are triggered). He talks about its implementation of aspect oriented programming and its event-driven architecture. Then he gets into some code-based examples: checking a query parameter on a dispatched request and logging form data before and after validation.

0 comments voice your opinion now!
zendframework2 event manager introduction tutorial


Jurian Sluiman:
Using Zend Framework service managers in your application
October 03, 2012 @ 08:52:39

Jurian Sluiman has a new post to his site showing how to use the service managers in your Zend Framework v2 applications.

Zend Framework 2 uses a ServiceManager component (in short, SM) to easily apply inversion of control. I notice there are good resources about the background of service managers (I recommend this blog post from Evan or this post from Reese Wilson) but many people still have problems to tune the SM to their needs. In this post I will try to explain the reason why the framework uses multiple service managers and how you can use these.

He talks about the different service managers that are available in the framework, why they're used, how they relate to the service locator and how you can define/fetch your own services in them. He includes some basic configuration code and compares the behavior of the root service manager to the others (application services, controllers, view helpers, etc).

0 comments voice your opinion now!
zendframework2 service manager tutorial introduction


Engine Yard:
Chicks That Rip Podcast Interview with Laura Thompson
August 27, 2012 @ 09:56:10

On the Engine Yard Developer Center today there's a new episode of their "Chicks that Rip" podcast series - an interview with Laura Thompson, a development manager and member of the PHP community.

Elizabeth Naramore interviews Laura Thomson about being a manager, the current state of PHP and speaking at Hacker School.

They talk some about Laura's background in development and PHP, how she learned to become a manager of a development group at Mozilla, the Hacker School event and some of the things she's seen happening in the PHP community. You can listen to this latest episode by downloading the mp3 or subscribing to their feed.

0 comments voice your opinion now!
chicksthatrip podcast laurathompson interview mozilla manager


Nelm.io Blog:
Composer Part 1 - What & Why
December 09, 2011 @ 13:14:34

On the Nelm.io blog today there's a new post (part one of a series) about using Composer and Packagist to manage PHP applications as packages.

You may have heard about Composer and Packagist lately. In short, Composer is a new package manager for PHP libraries. Quite a few people have been complaining about the lack of information, or just seemed confused as to what it was, or why the hell we would do such a thing. This is my attempt at clarifying things.

The briefly explains what the tool(s) do and shows how to set up the configuration on both sides - Composer to manage the packages and the package definition configurations (including meta about the project and any dependencies). He also answers several "why" questions about the need for a package manager, using this versus PEAR, the choice of JSON for config definition and a current status of the project.

0 comments voice your opinion now!
composer packagist package manager library dependency


Job Posting:
FireScope Seeks Experienced Web Application Developer/Manager (Dallas, TX)
April 26, 2011 @ 16:19:00

Company FireScope
Location Dallas, TX
Title Experienced Web Application Developer/Manager
Summary

Flexible hours, great pay and a fun atmosphere awaits the ideal candidate for this position.

Fun, dynamic software development company in North Dallas looking to hire an experienced web applications developer on a contract-to-perm basis.

The ideal candidate will possess extensive experience in the following:

  • PHP (experienced with Object and Class PHP methods) (5 yrs+)
  • Applications project lead experience - includes managing project lifecycle from concept, requirements gathering, development .. through testing.
  • MySQL - must have experiences with complex queries, store procedures. (3 yrs+)
  • JavaScript - Advanced Scripting, AJAX, JQuery
  • Linux (Red Hat)
  • HTML
  • XML/XSLT

Ideal candidate must be able to self-manage for multiple tasks, able to adapt to changing circumstances and have 3-5 years direct experience in business web application development. Must be able to work well alone or as a team.

Please submit your resume as soon as possible. Position is 30 day contract-to-perm.

Applicants must be US citizen or be able to prove legal work status

Please send resumes to careers@firescope.com Subject: PHP Developer Position

0 comments voice your opinion now!
dallas job firescope application developer manager


Kenny Katzgrau's Blog:
Video How GetSparks.org Uses CodeIgniter Sparks
March 17, 2011 @ 13:28:43

In a new recent to his CodeFury blog Kenny Katzgrau (a member of the GetSparks team) looks at how to use the GetSparks.org service to get "sparks" for your CodeIgniter installation and make working with third-party services and other tools not included with the framework simple.

If you aren't already familiar, a package manager and repository for CodeIgniter libraries was released last week at GetSparks.org. In the few days between then and now, some very interesting and useful packages have been submitted. There's one for combining, minifying and caching assets, one for database scaffolding, viewing logs, geocoding, template-ing, etc.

A screencast is included showing his in-depth look into the service and how easy it is to use. He also points to the service's twitter account and github repository.

0 comments voice your opinion now!
getsparks codeigniter screencast package manager


Ruslan Yakushev's Blog:
PHP Manager for IIS is available in 5 languages
March 14, 2011 @ 10:06:26

In a quick post Ruslan Yakushev points out that the PHP Manager for IIS is now available in five different languages to make it even simpler for the non-English speakers out there to use.

A new release of PHP Manager for IIS (version 1.1.2) is available for download. This release includes translations into 5 languages. [...] Note that this release still includes English and it is recommended to upgrade even if you do not need these translations

The new languages are German, Dutch, Turkish, Japanese and Russian and the post thanks each of the community members that helped with the translation. The PHP Manager for IIS is a tool for managing one or more PHP installations on a single IIS server.

0 comments voice your opinion now!
iis manager language german dutch turkish japanese russian



Community Events











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


overview install language framework component symfony2 opinion hhvm introduction release code application facebook podcast security hack package composer example unittest

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