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

Tomas Vortuba:
How to Test Private Services in Symfony
May 18, 2018 @ 16:21:39

Tomas Vortuba has a tutorial posted to his site showing you how to test private services in Symfony in unit tests for pre-4.1 Symfony installations (it has been resolved via simpler testing methods in Symfony 4.1 with the FrameworkBundle).

2 versions of Symfony are affected by this dissonance between services and tests. Do you use Symfony 3.4 or 4.0? Do you want to test your services, but struggle to get them in a clean way?

Today we look at possible solutions.

He starts with an example of the error you'd face if you tried to pull a service directly from the container that was marked as private. While you can specifically make it public in the yaml configuration, this potentially means doing that for all of the services you need to test. While this might work for smaller projects, it's unmaintainable for larger ones. He then shares some other options that could help resolve the issue including the one he ended up on: a compiler pass. He gets into a bit of detail on the changes this would require and where the "magic" is that lets it work.

tagged: test unittest private service symfony tutorial compiler pass

Link: https://www.tomasvotruba.cz/blog/2018/05/17/how-to-test-private-services-in-symfony/

Paul Jones:
PSR-4 "Autoloader" Has Passed
Dec 04, 2013 @ 16:37:51

As Paul Jones mentions in his latest post, one of the latest proposals to the PHP-FIG (Framework Interoperability Group) has officially passed, PSR-4, providing a more strict standard for autoloading than the widely used PSR-0.

Counting from the date of that first formal proposal, it has taken exactly 8 months of discussions, one botched vote, one rescinded vote, an entirely new FIG workflow, and four or five rewrites to get PSR-4 passed. Maybe 8 months doesn’t sound so long when you look back on it, but while you’re in the middle of it, it’s interminable.

Paul talks about some of the differences between it and PSR-0, making for "shallower" and more concise directory structures for packages. He also points to some of the packages from the Aura framework as examples of its implementation.

tagged: psr4 autoloader phpfig proposal vote pass directory structure namespace

Link: http://paul-m-jones.com/archives/4804

A Cloudy Place:
PHPFog and Pagoda Box: A Look at PHP Platforms
Mar 08, 2012 @ 15:29:45

On the "A Cloudy Place" blog there's a recent post comparing two of the more popular platform-as-a-service PHP offerings out there - PHPFog and PagodaBox.

Platform services like Heroku and AppEngine have been well-known for the last few years and many companies have been using them successfully in their business. They are more attractive to startups, due to low initial cost and smaller headaches involved in setup. 2011 was a great year for platform services, with the emergence of many platform services and a new trend for supporting multiple languages instead of supporting a single language. [...] Here, I will go through two of the PHP platform services I have experimented with: PHPFog and Pagoda Box.

He talks about each of the options and looks at several key elements of each including the deployment process, scalability, monitoring tools, offerings for caching and the database management utilities bundled with the application. Both services offer a "free instance" for you to try out their services, so give them both a try and see what you think.

tagged: phpfog pagodabox compare pass platform service deployment

Link:

Zend.com:
Enter to Win a Pass to PHP UK Conference 2011
Jan 17, 2011 @ 15:04:51

On the Zend.com site today there's a drawing you can enter for a chance to win a free pass to the PHP UK Conference happening in February (the 25th) in London.

The PHP London user group’s sixth annual PHP UK Conference is a full-day event of lectures and networking for web developers and managers at the Business Design Centre in central London on Friday 25 February 2011. Enter now, and possibly win a registration to this exciting event, worth £130!

The drawing will end on February 14th so be sure to put your name in for a chance to win a pass. Talks being presented at this year's event include topics such as advanced OOP patterns, frameworks, continuous improvement, NoSQL, Amazon EC2 and Xdebug. You can find out more about the conference in general on the PHP UK website.

tagged: zend conference pass phpuk11 phpukconference drawing

Link:

Zend Developer Zone:
Passing the ZCE PHP 5.3 certification exam!
Oct 12, 2010 @ 14:19:12

If you've been considering taking the Zend Certified Engineer exam for PHP 5.3 but want to be sure you know what you need to pass, take a look at this new post to the Zend Developer Zone with some helpful hints on the topics the test covers.

According to Zend , the exam covers the following topics: PHP Basics, Functions, Data Format & Types, Web Features, Object Oriented Programming, Security, I/O, Strings and Patterns, Databases and Arrays. I will detail each topic as to what you should expect at the exam, however I will first tell you some basic information about the exam. Then I will tell you about the three most important changes of PHP 5.3 and another new feature I find very useful.

He starts with a few of the basics of the exam (how many questions, his testing strategy, the number of fill-in-the-blank questions) before moving into each of the topics. It's not an exhaustive description of each, but it gives you a good idea of where to start when studying. There's lots of links to resources for each that'll take you to some great places to learn in more detail.

tagged: zce exam certified zend pass guide

Link:

Zend Developer Zone:
ZendCon T-Shirt contest
Aug 11, 2010 @ 17:56:47

On the Zend Developer Zone there's a recent post about a contest they're running to give one lucky winner a free pass to this year's Zend/PHP Conference in November in Santa Clara, California.

Summer is upon us, which means that the annual Zend/PHP Conference (ZendCon), the world's largest gathering of the PHP community, is drawing near. Preparations are already in high gear, and you can make an impact on what fellow PHPers will wear in Fall of 2010! Submit your cool t-shirt designs or just cast your vote. The winning design will be used for the new 'official' PHP t-shirt. Every ZendCon attendee (and some others) will be getting the free t-shirt, and you get a free pass to the conference!

Besides the ticket to ZendCon, there's also two other prizes for the runners up - a free pass for a Zend Certification Exam (5.3) and a pass for a Zend Framework Certification Exam. There's about seven weeks left to submit your design and are currently eight entries on the list, so get your design in early to give it the best chance for the most votes. The submission round will end September 30th, so get your designs in soon!

tagged: zendcon2010 tshirt contest pass certification exam

Link:

Zend Developer Zone:
ZendCon User Group Content - Free Pass Announcements
Jul 16, 2009 @ 18:37:47

On the Zend Developer Zoen today Eli White has announced the winners of the free passes for this year's Zend/PHP Conference - five groups all across the PHP community.

As previously announced, Zend held a contest here to give away 5 free tickets to ZendCon 2009 to 5 deserving User Groups. It's now time for the announcements of who won! [...] To the end, the following groups are being chosen to each receive a free ticket, and they will get an email from me to start processing that soon.

The five groups that will be receiving their free pass are:

Congrats to the winning groups! For all others, you can still get in on the early bird rates as long as you order before August 28th (plus there's all sorts of other discounts). Check out the registration page for more information.

tagged: zendcon09 pass free contest usergroup

Link:

Zend Developer Zone:
Contest: Free ZendCon Passes for User Groups!
Jun 30, 2009 @ 19:52:30

The Zend Developer Zone (and S&S) have announced a contest giving away five tickets to this year's ZendCon conference. How can you enter? Read on...

Zend and S&S support local PHP user groups, and will be providing a limited number of free ZendCon passes for user groups to distribute to active members who might not have the financial wherewithal otherwise.

There'll be five passes handed out to user groups - one to each of the five selected groups. To enteryour user group, get one of the organizers to submit a bit of information about the group and reasons why they think the group should be given a pass. Full details on what needs to be sent and where to set it all off to can be found in the full post. Good luck!

tagged: usergroup pass free zendcon09 contest

Link:

Eli White's Blog:
Programming Certifications
Oct 09, 2008 @ 13:43:30

Eli White has written up a new post about his opinions on certifications (and his habits relating them when it comes to resume reviews).

As it stands, I've shocked more than my share of people in the past when I've mentioned my stance on certifications for programmers. Specifically, when I have a pile of resumes in front of me, and I'm giving them an initial pass to sort them apart, I take any that mention their programming certifications, and sort them to the bottom.

He justification is that most of the certifications out there are pretty much useless and that, from his experience, those that list them on their resume are using it to appear more qualified.

So what is it that's so wrong with the certifications in the first place? Simply put, they prove nothing to me. They only prove that you could cram and pass a multiple choice test.

But, as he notes, programming is more about art than knowing the order of the arguments in str_replace. He illustrates his other point, "passing - yes but by how much?" with how the Zend Certified Engineer exam is handled. You get a pass or fail and you only know what you didn't do so well on if you fail.

tagged: programming certification zce zend engineer pass fail

Link:

Zend Developer Zone:
and of course...The Contest (Free ZendCon Pass)
Aug 20, 2007 @ 18:31:00

The Zend Developer Zone has announced a new contest today to give away a pass to this year's Zend/PHP Conference & Expo (happening the first week in October in San Francisco, CA).

Here's the contest. [Below]you will see a Flash player queued up to play a 30 second commercial for ZendCon. Near the end of the video is a panel that says "and of course..." I'm looking for the best, ZendCon related answer to the answer to the panel, "and of course..." (you will understand after you've watched it) Witty, poignant, silly, creative, none of these describe the ones I was able to come up with, so let's see you try.

The one submission that takes the cake will win first prize, the ticket to ZendCon and five runners up will receive a free license for a copy of Zend Studio. Entering is easy - submit your entry by sending an email off to contest@zend.com

tagged: zendcon2007 pass free contest zendstudio video zendcon2007 pass free contest zendstudio video

Link:


Trending Topics: