The PHP development group has released several different versions of PHP for the 5.5.x, 5.6.x and 5.4.x series with a long list of security issues fixed in each one (fourteen in total):
The PHP development team announces the immediate availability of PHP [5.4.40, 5.6.8, 5.5.24]. 14 security-related bugs were fixed in this release, including CVE-2014-9709, CVE-2015-2301, CVE-2015-2783, CVE-2015-1352. All PHP 5.4 users are encouraged to upgrade to this version.
Other items were fixed besides the security issues, so check out the Changelog to see those few other fixes. It’s highly recommended that you update your installations to these latest versions. You can grab the latest either from the downloads page (source) or Windows users can go to winodws.php.net.
Veröffentlicht unter Allgemein
Verschlagwortet mit 5.4.40, 5.5.24, 5.6.8, Fixes, PHP.net, Released, Security
The Made With Love blog has posted a great introduction to version handling in Composer today. They focus in on two characters that can be confusing if you’re not exactly sure what they mean – the carat (^) and tilde (~).
A dependency that uses semantic versioning allows you to predict wether it is still going to work or not when you upgrade it to a new version. Basically when the x in a x.y.z version number changes, you might need to do some changes to be able to work with this new version without problems. […] Depending on your dependency manager you can define version constraints using wildcards (*), comparators like < =, logical operators (, often means AND and | means OR), etc. [...] There are also some syntactic sugar operators like ~ (tilde) and ^ (caret)
They include some examples of both characters in use defining the required install versions, showing how one allows for approximate matches and the version ranges they apply to.
Phillip Shipley has posted the second part of his series (first part is here) about creating a PHP client for the Nexmo API with Guzzle, the popular PHP HTTP client.
In Part 1 of this series we laid a foundation for consuming the Nexmo SMS API and covered a few ways to interact with it. In this part we’ll create the actual Guzzle Web Service Client to interact with it to demonstrate how simple it can be.
He starts by getting Guzzle installed via Composer including a few extra components: guzzle-services, retry-subscriber and log-subscriber. He defines the structure (code) for the message to send to the Nexmo service. Next up is the creation of the actual client that takes in configuration settings and extracts the HTTP location and applies the provided credentials to the connection. Finally he makes a simple SMS client that extends this base client and puts it to use with a simple message defined in an array (to, from and text contents). The client then reports back the results in a simple nested array with response information from the Nexmo API.
The PHP Roundtable podcast has released their latest episode – 016: Contributing To PHP 7 with guests Joe Watkins, Paul Dragoonis, Lorna Mitchell and Joe Ferguson.
You don’t need to be a C programmer in order to contribute to PHP internals. We’ll be discussing how you can get involved with PHP internals, the GoPHP7-ext project and how you can help get PHP 7 ready for release.
You can catch this latest episode through the in-page video player showing the live recording of the show. If you enjoy the episode, be sure to subscribe to their feed too!
Veröffentlicht unter Allgemein
Verschlagwortet mit Contributing, Roundtable
The Laravel Podcast has released their latest episode (#24) – Dog at the Keyboard.
In this episode, the crew discusses PHP 7, Browserify, and their favorite Mac applications.
A brief description but the show runs about 30 minutes and is hosted by Matt Stauffer and guests Taylor Otwell and Jeffrey Way. You can listen to this latest episode either through the in-page audio player or by downloading the mp3. If you enjoy the show, be sure to subscribe to their feed and get the latest shows as they’re released.
Veröffentlicht unter Allgemein
Verschlagwortet mit Episode, Keyboard, Laravel, Podcast
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.
The PHP Roundtable podcast has posted their latest episode, part two in a series looking at semantic versioning, open source support expectations and licensing. This new episode features guests Colin O’Dell and Chris Tankersly.
Part 2 of an on-going series on open source. We discuss a number of open source topics including what the expectations are for support of an open source project. We also discuss how to use SemVer to successfully maintain an open source package and what we can do when SemVer is not an option. And finally we take a look at licensing and discuss why we need to be concerned with it.
You can listen to this latest episode by checking out the video of the live recording, coming in at about 1 hour. If you enjoy the show, be sure to subscribe to their feed to get the latest updates on when new episodes are available.
In this tutorial to the stfalcon.com site Sasha Lensky talks about some things you can do to help boost the performance of your Symfony2 application with a few tweaks in how Doctrine is used.
I have been trying to write this article for a long time, but just couldn’t get around. Finally, I pulled myself together and did it. So, what will we discus … I will share some techniques about working with Doctrine2 ORM, which will help to improve the site performance on Symfony2 (precisely any site that uses Doctrine2 ORM). I have created a project and put it on GitHub as a visual guide, so anyone can test my words in action now.
He shares five tips and includes code examples and results (based on the Profiler toolbar) for each:
- Downloading all necessary connections
- Updating multiple entities by request
- Hydration waiver
- Using Reference Proxies
- Using Symfony Profiler Toolbar
That final tip about the Profiler toolbar is actually one used in the rest of the examples too, showing how to get that other information from the tool.
The SitePoint PHP blog has a new tutorial posted today showing how to create custom field formatters in a Drupal 8 application. Custom formatters allow you to enhance the current functionality of objects in the application and extend them with additional functionality.
With the introduction of annotated plugins, a lot has changed in Drupal 8. We have a more streamlined approach to describing and discovering pieces of functionality that extend the core. Along with many other components, the former Field API (part of the larger and consolidated Entity API) is now based on plugins. In this tutorial we will go through defining a custom field formatter for an existing field (image). What we want to achieve is to make it possible to display an image with a small caption below it. This caption will be the title value assigned to the image if one exists.
They start with a new custom module, starting with just the YAML configuration. Then they help you create the field formatter as a plugin in the “Plugin/Field/FieldFormatter” namespace (code included). They explain how this code works and show how to add it as a hook to make it available to the template layer. Finally they show it in use and how it places the title value into the image caption in the result.
Link: Creating Custom Field Formatters in Drupal 8