Community News: Packagist Latest Releases for 02.21.2015

Recent releases from the Packagist:

PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , | Hinterlasse einen Kommentar

The ChangeLog Podcast: #142: Laravel PHP Framework with Taylor Otwell

The ChangeLog podcast has posted their latest episode, #142, with guest Taylor Otwell, creator of the popular Laravel framework.

This week we’re joined by Taylor Otwell, he’s the creator and maker of the Laravel PHP framework. He joins us for a deep dive into Laravel, why he doesn’t release without good documentation, building apps to test your own framework, writing an API for Lavarel Forge, and more.

There’s a good range of topics discussed, both Laravel and non-Laravel with links included in the post. You can listen to this latest episode either through the in-page audio player or by downloading the mp3.

Link: http://thechangelog.com/142/
PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , , , | Hinterlasse einen Kommentar

Reddit.com: So, what is PHP’s nature? Anyone actually know exactly what it is?

In this recent post to the /r/php subreddit on Reddit.com, the question is asked “what is the nature of PHP?” and how it relates to what features make it into the language and which don’t.

I’ve heard many times that a proposed RFC/new feature got rejected by PHP internals in voting phase, since ‘it does not fit the nature of PHP’. But the question is, what is PHP’s nature? Does it even have a nature at all? If yes, is there a standard or guideline of what fits in PHP’s nature? I think its very confusing, isnt it? Anyone actually have some insights in this?

In the comments other users provide a wide range of opinions including:

  • “I would recommend taking those types of comments with a grain of salt. PHP’s nature is a very subjective topic, as you can tell by the other comments.”
  • “PHP was made to make dynamic web pages at a time when webpages contained minimal dynamic content. It was made at a time when web pages doesn’t required a programming language to generate.”
  • “Easy to pick up and make a website for weak devs/prototypes (easy to abuse). Much of the hate for PHP is because this abuse is possible and exploited often.”
  • “As someone mentioned, nobody who does any sort of web development today can ignore Javascript and they will typically be switching back and forth between Javascript and PHP every couple of minutes. This is our target user these days and as such this syntax is appropriate I think.”

Check out the full post for more opinions or to voice your own!

Link: http://www.reddit.com/r/PHP/comments/2vmh3o/so_what_is_phps_nature_anyone_actually_know/
PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , , , | Hinterlasse einen Kommentar

SitePoint PHP Blog: Grumpy Programmer’s Testing Bundle: Review

The SitePoint PHP blog has posted a book review of a book bundle from the “Grumpy Programmer” (aka Chris Hartjes) with content about testing – how to test, what to test and creating testable applications.

After having gotten some constructive feedback regarding my testing practices on the basic TDD in your new PHP package tutorial, I decided to read Chris Hartjes “Grumpy Testing Bundle“, a set of two books consisting of The Grumpy Programmer’s Guide To Building Testable PHP Applications and The Grumpy Programmer’s PHPUnit Cookbook. It was my hope that those books will prevent me from using the shoddy practices I displayed in that original post and which originally prompted Matthew Weier O’Phinney’s critique. In this post, I’d like to share with you what I’ve learned, and how much this helped me, if at all.

He breaks down the bundle and talks about each of the two books separately, pointing out places he thought were most useful and others where he felt it needed updates/more clarification. He includes examples of some of the code shared in the books as illustrations and what kind of overall rating he gives it (in elePHPants naturally).

Link: http://www.sitepoint.com/grumpy-programmers-testing-bundle-review/
PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , , | Hinterlasse einen Kommentar

Community News: Packagist Latest Releases for 11.22.2014

Recent releases from the Packagist:

PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , | Hinterlasse einen Kommentar

Voices of the ElePHPant: Interview with Mike van Riel

The Voices of the ElePHPant podcast has released their latest episode in their community interview series. In this latest episode host Cal Evans talks with Mike van Riel, the project lead on the PHP Documentor project.

Cal and Mike talk about Mike‘s work in a community-focused company, his own experience at the WeCamp conference, his experience speaking and the work he does on the PHP Documentor project.

You can listen to this latest episode either through the in-page player or by downloading the mp3 directly. If you enjoy the interview and want to hear more from the PHP community, be sure to subscribe to their feed.

Link: http://voicesoftheelephpant.com/2014/11/18/interview-with-mike-van-riel/
PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , | Hinterlasse einen Kommentar

SitePoint PHP Blog: Practical OOP: Building a Quiz App – Bootstrapping

The SitePoint PHP blog has kicked off a new series of posts today with the first tutorial about building an application with OOP and the Slim framework. In this starting article they focus in on bootstrapping the application and introducing some of the basics behind MVC and OOP.

At a certain point of my development as a PHP programmer, I was building MVC applications by-the-book, without understanding the ins-and-outs. I did what I was told: fat model, thin controller. Don’t put logic in your views. What I didn’t understand was how to create a cohesive application structure that allowed me to express my business ideas as maintainable code, nor did I understand how to really separate my concerns into tight layers without leaking low-level logic into higher layers. I’d heard about SOLID principles, but applying them to a web app was a mystery. In this series, we’ll build a quiz application using these concepts. We’ll separate the application into layers, allowing us to substitute components: for example, it’ll be a breeze to switch from MongoDB to MySQL, or from a web interface to a command-line interface.

They start off with a bit about why “MVC is not enough” and how they’ll be applying domain modeling as a part of the application. There’s also a brief mention of the concept of a service layer and how it will fit into the overall structure. Then it’s on to the code: getting Slim installed (via Composer) and starting in on the interface/service classes for the Quiz. They walk you through entity creation for the Quiz and Question instances and a mapper to tie them together.

Link: http://www.sitepoint.com/practical-oop-building-quiz-app-bootstrapping/
PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , | Hinterlasse einen Kommentar

Liip Blog: Functional Programming in PHP

On the Liip blog today there’s a tutorial from Gilles Crettenand giving you an overview of functional programming in PHP. While PHP is not normally used as a functional language, it is possible to simulate the same effect.

Functional programming has gained a lot of traction those 3 to 5 last years. […] Those [frameworks and languages] are all cool and shiny new toys, but we can benefit from some techniques without having to learn a new tool, just by applying some principles to our everyday PHP! But first of all, what exactly is functional programing?

He starts off with some of the basics of functional programming, some of the difficulties that can come with it and, of course, the advantages it can provide. From here he starts in with code examples. He shows how functions become “first-class citizens” and how they can be applied to various elements. He illustrates this with a few array manipulation examples. Next up are “utility functions” for evaluating the data given (like “any” or “all”). He ends the post looking at the idea of “memoization”, or the caching of the results of function calls against data. He shows how to accomplish this with static local variables in PHP and includes a wrapper you can pass any callable function into and have the results cache automatically.

Link: http://blog.liip.ch/archive/2014/11/05/functional-programing-in-php.html
PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , | Hinterlasse einen Kommentar

PHP.net: New Supported Versions Timeline Page

The PHP.net website has introduced a new feature to help make it a bit clearer which versions of PHP are supported and which have reached their end-of-life mark. This new Supported versions page off the main site provides listings of currently supported versions and graphical timelines of past (and future) support milestones.

Each release branch of PHP is fully supported for two years from its initial stable release. During this period, bugs and security issues that have been reported are fixed and are released in regular point releases. After this two year period of active support, each branch is then supported for an additional year for critical security issues only. Releases during this period are made on an as-needed basis: there may be multiple point releases, or none, depending on the number of reports.

The page includes information on when the initial release in a series was made (like the 5.4.x or 5.5.x series), when active support did/will end and how long the timeline is for security fixes and support. As of the time of this post, PHP 5.3.x is the only series that has reached end-of-life, but the 5.4.x series is coming close being in security fix only mode now and EOL-ing completely in ten months.

Link: http://php.net/supported-versions.php
PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , | Hinterlasse einen Kommentar

Community News: Packagist Latest Releases for 10.22.2014

Recent releases from the Packagist:

PHPDeveloper.org

Veröffentlicht unter Allgemein | Verschlagwortet mit , , , , , | Hinterlasse einen Kommentar