Posts Tagged ‘Php News’

Gilles Mergoil: Laravel 4 on Google AppEngine for PHP

Since Google recently announced that they’d be supporting PHP on their App Engine service, developers have been trying out various setups to see how well they’d work. In this recent post Gilles Mergoil shares some of his experience with getting a Laravel 4-based application up and running in App Engine.

Now that Google App Engine opens to the PHP world and that the 4th version of the Laravel framework is officialy launched, we wanted to test these two promising technologies together at Neoxia. This blog post is the result of our tests whose goal was to have a standard Laravel 4 application on the Google App Engine PHP runtime up and running Given that an application without a database is not very useful, we also tested the Google Cloud SQL service which is the Google flavour of the MySQL database in the cloud.

He works through some of the steps for his first attempt at getting it set up, but notes that the seemingly working setup wasn’t actually cooperating like it should. Thanks to some log analysis (and debugging) he found a few issues – missing functions, the lack of the mcrypt extension and session/cache/logging problems. He shows how to correct each of these and then moves on to connecting the app to a Google Cloud SQL database.

Link: http://blog.neoxia.com/laravel-4-on-google-appengine-for-php

PHPMaster.com: Data Structures for PHP Devs: Stacks and Queues

On PHPMaster.com today there’s a new tutorial – the first part in a series – looking at data structures. In this first post Ignatius Teo looks at the concepts of “stacks” and “queues”.

Most of us are familiar with “stacks” and “queues” in normal everyday usage. But, what do supermarket queues and vending machines have to do with data structures? Let’s find out. In this article, I will introduce you to two basic abstract data types – the Stack and the Queue – which have their conceptual origins in everyday usage.

He introduces some of the common concepts behind these two ideas and includes some sample code showing how to implement them. He also mentions some of the SPL functionality that’s bult into PHP to handle some of this. The SplStack and SplQueue objects take some of the hassle out of it for you.

Link: http://phpmaster.com/php-data-structures-1

Sameer Borate: Simple user authentication in Laravel 4

Sameer Borate has a new post today showing how you can do simple user authentication in a Laravel 4-based application using the built-in Auth functionality.

With the recent release of Laravel 4, PHP developers have at their disposal one of the finest frameworks for application development. As with all new frameworks, it is always good to write some quick code to get a feel for the underlying architecture. The following post shows a simple authentication application using Laravel.

He walks you through the creation of the simple “users” table, the configuration the Auth class will need to connect and authenticate and the form for the login. He also shows the steps for the actual authentication process as well as the code for the routes to make it all work. Additionally, he shows how to restrict pages to only those with the “admin” level access via an auth filter. You can download the example code here.

Link: http://www.codediesel.com/frameworks/simple-user-authentication-in-laravel-4

Sameer Borate: Simple user authentication in Laravel 4

Sameer Borate has a new post today showing how you can do simple user authentication in a Laravel 4-based application using the built-in Auth functionality.

With the recent release of Laravel 4, PHP developers have at their disposal one of the finest frameworks for application development. As with all new frameworks, it is always good to write some quick code to get a feel for the underlying architecture. The following post shows a simple authentication application using Laravel.

He walks you through the creation of the simple “users” table, the configuration the Auth class will need to connect and authenticate and the form for the login. He also shows the steps for the actual authentication process as well as the code for the routes to make it all work. Additionally, he shows how to restrict pages to only those with the “admin” level access via an auth filter. You can download the example code here.

Link: http://www.codediesel.com/frameworks/simple-user-authentication-in-laravel-4

Community News: Packagist Latest Releases for 06.16.2013

Recent releases from the Packagist:

Community News: Packagist Latest Releases for 06.15.2013

Recent releases from the Packagist:

Reddit.com: Where do people put good PHP job ads now?

On Reddit.com there’s a post sharing some opinions on where to look for PHP jobs and find “the good ones” out of the sea of positions.

I don’t want to make this a “hire me” post, because that would and should get downvoted, but where would a person go to find interesting PHP related job ads in 2013? Some of the older big job sites like Monster and Dice are a barren wasteland of boring recruiters hiring for defense contractors, health insurance companies and low end agencies. Github has a small but decent section. Stack Overflow has some decent ones. Hacker news has a monthly thread, but a strong anti-PHP hipster bias. Reddit, at least from search has so few that I find 2 year old ones.

The responses range from links to specific companies looking for people out to some more general resources like LinkedIn, Craigslist, and yes, even recruiters (just be sure to pick a good one).

Link: http://www.reddit.com/r/PHP/comments/1g59kb/where_do_people_put_good_php_job_ads_now

Reddit.com: Where do people put good PHP job ads now?

On Reddit.com there’s a post sharing some opinions on where to look for PHP jobs and find “the good ones” out of the sea of positions.

I don’t want to make this a “hire me” post, because that would and should get downvoted, but where would a person go to find interesting PHP related job ads in 2013? Some of the older big job sites like Monster and Dice are a barren wasteland of boring recruiters hiring for defense contractors, health insurance companies and low end agencies. Github has a small but decent section. Stack Overflow has some decent ones. Hacker news has a monthly thread, but a strong anti-PHP hipster bias. Reddit, at least from search has so few that I find 2 year old ones.

The responses range from links to specific companies looking for people out to some more general resources like LinkedIn, Craigslist, and yes, even recruiters (just be sure to pick a good one).

Link: http://www.reddit.com/r/PHP/comments/1g59kb/where_do_people_put_good_php_job_ads_now

DZone.com: PHP Performance Crash Course, Part 1: The Basics

In a recent post to DZone.com Dustin Whittle talks about performance in PHP applications and gives you a crash course on some of the basics around it (this is part one of a series).

We all know performance is important, but performance tuning is too often an afterthought. As a result, taking on a performance tuning project for a slow application can be pretty intimidating – where do you even begin? In this series I’ll tell you about the strategies and technologies that (in my experience) have been the most successful in improving PHP performance. To start off, however, we’ll talk about some of the easy wins in PHP performance tuning. These are the things you can do that’ll get you the most performance bang for your buck, and you should be sure you’ve checked off all of them before you take on any of the more complex stuff.

He talks some about why performance matters and some of the more common practices to introduce immediate performance improvements into your application. His list includes things like: update PHP, use an opcode cache, use autoloading and session optimization. He also talks about using processing queues for blocking work and learning how to use code profiling tools to find the pain points.

Link: http://java.dzone.com/articles/php-performance-crash-course

Hut 8 Labs: Coding, Fast and Slow: Developers and the Psychology of Overconfidence

There’s an interesting post over on the Hut 8 Labs blog looking at overconfidence in developers and how it effects their estimations of the time it takes to get things done.

I’m going to talk today about what goes on in inside developers’ heads when they make estimates, why that’s so hard to fix, and how I personally figured out how to live and write software (for very happy business owners) even though my estimates are just as brutally unreliable as ever. But first, a story.

He talks about one of his own experiences about overconfidence and how he found a connection point in a section of a book with it as it talked about overconfidence. He talks about why you (we, as developers) suck at making estimates and how it should be less of a “how long to do it” question and more of a “how confident am I that I can do it” question. He points out that there are some situations where estimations don’t suck – 0-12 hour tasks.

So what do we do? Just accept that all our projects are doomed to failure? That we’ll have poisoned relationships with the rest of the business, because we’ll always be failing to meet our promises? The key is that you first accept that making accurate long-term estimates is fundamentally impossible. Once you’ve done that, you can tackle a challenge which, though extremely difficult, can be met: how you can your dev team generate a ton of value, even though you can not make meaningful long-term estimates?

Link: http://blog.hut8labs.com/coding-fast-and-slow.html