Latest PEAR Releases for 03.30.2015
March 30, 2015 @ 07:09:18
Latest PEAR Releases:0 comments voice your opinion now!
New Symfony installer the fastest way to start your Symfony project
March 27, 2015 @ 12:13:42
The ServerGrove blog has a new post today introducing the new Symfony Installer, a tool that can make getting started with a Symfony2 application quick and easy.
Yesterday, the Symfony team introduced the new Symfony installer. Its main goal is to help developers to create Symfony projects faster. Until now, installing Symfony to start a new project required a few steps. [...] The installer tries to do this in one step. It downloads a compressed file with all the code, including the vendors directory, so you don't need anything else to run Symfony for the first time.
The post shows you how to install the installer via a curl call to fetch the executable. They show how to use it to create a new project, making a demo project and the resulting application and web interface for the demo. They also mention some of the future work that's planned for the installer including HTTPS support and caching improvements. The post finishes up with a quick mention of the code "under the hood" using the Symfony console component.
5 Things You Must Know about PHP 7
March 27, 2015 @ 11:07:39
There's been a lot of talk in the community about PHP 7 and what features will be included but there's been a *lot* of it. To help distill it down a bit Zend has posted this infographic of the Top 5 features that will be coming in this next major version.
Their top five list includes both the main points and a quick summary for:
...and #5, even more performance improvements. There's also some links to other information about some of the topics to provide even more detail for those wanting to dive in.
Using Interfaces Effectively in PHP
March 27, 2015 @ 10:12:32
Kristopher Wilson has a quick post talking about how he thinks you can use interfaces effectively in PHP applications.
Yesterday, a question appeared on Reddit about the purpose of interfaces in PHP. While I was too late to the party to provide an answer to that thread (at least that would get noticed by anybody), I thought it was a great topic of conversation. So let's take a look at interfaces in PHP.
He introduces some of the basics around interfaces and provides some sample code showing how they're created and used (and extended). He talks about some good practices for implementing them in your classes and how this fits into the world of dependency injection. He also includes a bit about type hinting based on the interface implemented and how they can be seen as "contracts" in your code.
Working with the PayPal API
March 27, 2015 @ 09:57:34
PayPal recently introduced a new RESTful API that is more convenient and more powerful than the previous version. In this article, I will show you how to integrate your PHP application with the new PayPal API.
They start with a summary of the PayPal API and how to get the SDK loaded and ready to use (either through Composer or manually). The tutorial walks you through the authorization process (OAuth) and the code you'll need to make it happen. They also show you how to create transaction (including currency type and description) after the items have been submitted. There's also some code showing you how to get the current status of the payment once it has been submitted.
Build a Time Tracker with Laravel 5 and AngularJS - Part 1
March 27, 2015 @ 08:49:57
On the Scotch.io site there's a new tutorial showing you how to build a time tracking application with a combination of Laravel and AngularJS. This is the first part of a new series and focuses on the basic principles and getting some of the first parts of the application up and running.
He starts with an overall look at the application and what functionality it will have. From there he walks you through:
He makes use of the Moment.js library to perform some of the time calculations for the difference and total time elapsed. He ends the post by tying up some loose ends with the controller and updating the view with the new calculated time values.
Popular Posts for the Week of 03.27.2015
March 27, 2015 @ 07:05:13
Popular posts from PHPDeveloper.org for the past week:0 comments voice your opinion now!
Zoom on PHP objects and classes
March 26, 2015 @ 12:50:49
Julien Pauli has a recent post to his site that "zooms in" on objects and classes with a look behind the scenes at how they're handled in the PHP source (at the C level) with plenty of code examples and explanations as to how they work.
Everybody uses objects nowadays. Something that was not that easy to bet on when PHP5 got released 10 years ago (2005). I still remember this day, I wasn't involved in internals code yet, so I didn't know much things about how all this big machine could work. But I had to note at this time, when using this new release of the language, that jumps had been made compared to old PHP4. The major point advanced for PHP5 adoption was : "it has a new very powerful object model". That wasn't lies. [...] Here, I will show you as usual how all this stuff works internally. The goal is always the same : you understand and master what happens in the low level, to make a better usage of the language everyday.
The article does a great (if lengthy) job of covering everything that happens with PHP's objects and class system, including stats about memory consumption. He includes both the PHP code and the C code to illustrate what's happening with classes, interfaces, traits and object methods/attributes (including object references). He also talks about what "$this" is and how class destructors are handled.
Writing a webserver in pure PHP - Tutorial
March 26, 2015 @ 11:27:42
On the Clancats.com blog there's a recent post showing how to create a web server in pure PHP, an interesting experiment but definitely not recommended for any kind of higher load situation.
He walks you through all the code needed to create the web server (also available on GitHub) by making:
The full code is provided during the process along with explanations of what each part does. There's also a basic introduction to what a typical web server is and how the process of request/response usually flows.
PHP 7.0 as Software Collection
March 26, 2015 @ 10:15:48
Remi Collet has a new post today talking about the next major release of the PHP language - PHP 7 - and how it, in its current state, can be installed now as an RPM from the "remi" repository as a software collection.
RPM of upcoming major version of PHP 7.0, are available in remi repository for Fedora 20, 21, 22 and Enterprise Linux 6, 7 (RHEL, CentOS, ...) in a fresh new Software Collection (php70) allowing its installation beside the system version. As I strongly believe in SCL potential to provide a simple way to allow installation of various versions simultaneously, and as I think it is useful to offer this feature to allow developers to test their applications, to allow sysadmin to prepare a migration or simply to use this version for some specific application, I decide to create this new SCL.
Instructions for the installation (via yum) are included and a list of some things "to be noticed" about the setup are also included.
Let us know!
unittest api security laravel5 series framework language library version release introduction php7 video opinion podcast interview example laravel voicesoftheelephpant community
|All content copyright, 2015 PHPDeveloper.org :: firstname.lastname@example.org - Powered by the Solar PHP Framework|