PHP Digest: Faker PHP Repository, Practical Code Refactoring, the Law of Demeter and Much More
News and Releases:
- PHP on mobile platforms, 2 – Andi Gutmans unveiled his company’s new “mobile first” approach to application development. PhoneGap support along with drag-and-drop capabilities for prototyping mobile apps are added to Zend Studio 10. Details are available from the source – recording of Andy Gutmans speech in the Zend official press release.
- Yii 1.1 will be supported till Dec 31, 2015. – Because of the wide popularity of Yii 1.1 it has been arranged to extend the end-of-maintenance date of Yii 1.1 with its full support even after Yii 2 is released.
- Symfony released 2.0.18, 2.1.3 – New versions of the framework have been released, and there is a considerable progress in the Symfony CMF project.
- PHP_CodeSniffer 1.4.1 released – a new version of automatic code checking for compliance to standards system has been released. List of changes.
- Faker – one of the most popular PHP repositories of this week. Faker is a library that generates fake data for you very similar to these: names, emails, addresses, phone numbers, etc.
- PHP to mobile app in 10 minutes – Zend senior director of product management Kent Mitchell creates a cloud-enabled app in PHP.
- A closer look into PHP arrays: what you don’t see. – Surely, everyone knows that arrays in PHP are implemented with the hash table. But in this excellent article, the author plunges into the topic quite further. The author shares with you some of the underlying details of how the PHP array data type works, why it works the way that it does, how it’s different from other languages, and what behaviors the PHP array has that you may not be fully aware of.
- Over-abstractionism – a reminder for those who use OOP (not just PHP developers) with an appeal not to overuse “abstraction” – the excessive use of all kinds of abstractions at the expense of simplicity.
- Spooky Scary PHP – The author has devoted this post to Halloween holiday, having shared with you some scary (but logical) behavior found in PHP itself, and spooky (and possibly quite illogical) ways in which some have twisted PHP to do their bidding.
- Symfony and the scary world of PHP – the post where the author expresses his displeasure with PHP and Symfony. “All in all, PHP is still a horrible place to be” – he concludes.
- Test Drive PHP 5.5: A Sneak Peek. – The author not only tells us about the new features expected in the new version, but also test-drives practical uses for some of those new features and even giving you some actual bench marks for generators in PHP 5.5.
- ZendCon Live – Keynotes from ZendCon, including Andy Gutmans interview, in which he talks about the latest innovations. Records of all other reports are available on youtube.
- Practical Code Refactoring, Part 1,2,3,4. – a great series of 4 articles that reveals the essence of refactoring as the way to improve readability, to simplify scalability and to increase code efficiency.
- Swift Email Delivery – offers a flexible and elegant object-oriented approach to sending emails with a multitude of features with the updated Swift Mailer.
- Design Patterns Bootcamp – a big presentation on design patterns with examples in PHP by one of Zend Technologies developers.
- Puppet or Chef? – a comparison of two popular configuration control systems.
- Yii with Symfony2′s Form and Dependency Injection components – a short note on the use of Form and Dependency Injection from Symfony2 in Yii.
- Painless Data Traversal with PHP Filterlterators. – there is load of ways to traverse data, especially in PHP where there are a variety of loops available; including while, do while, for and foreach. These are fine for normal structures, such as scalar and associative arrays. But what if you want to get a bit more fancy? The author provides a small amount of code with a rather trivial approach, and then shows how using FilterIterator, you can extend the default bypass, adding a custom method “accept” to filter out unwanted elements.
- Factory patterns: Collaborators Map. – an article about the popular generic design pattern. The author talks about the benefits of using Factories over a DIC and about the approach, called Collaborators Mapr. Examples and recommendations for further improvement and expansion of functionality are given.
- Introduction to the Law of Demeter. – an article tells about one of the principles of software design – the Law of Demeter, which can be considered a subset of the loose coupling principle. The author describes the fact that when an object knows way too much about another (and this implicitly includes knowing how to access a third one) is considered wrong and how to find the actual dependencies it needs to work as expected. Examples are given.
- List Files and Directories with PHP. – an article describes a common task everyone might have experienced while developing a PHP application: listing files and directories. Several basic and advanced solutions are discussed, each having its pros and cons. First there is a presentation of three approaches that use some very basic PHP functions and then progress to more robust ones which make use of SPL Iterators.
- SQL support and Database tools in PhpStorm. – an article about the way to perform routine tasks while working with databases in your project, right from your IDE.
- Why I No Longer Recommend Magento Community Edition To Small Businesses – the author describes his experience with Magento and lists the main reasons of looking for another solution.
- WPEngine Review – lightning Fast WordPress Hosting.
- Common WordPress Malware Infections – WordPress is incredibly popular attracting Malware creators. Errors are detected rarely and rectified rather quickly, but not so with plugins and themes. The article describes the popular “viruses”, the methods of how to detect and prevent them.
- Plugins and themes feedback for WordPress.org – the development team has added the ability to provide feedback on the themes and plugins.
Plugins Releases for WordPress:
- Post via Dropbox – allows you to post or edit your blog with text files uploaded via Dropbox.
- Detectify – analyzes the level of security on your website or blog via a simulated hacker attack.
- Dynamic Forms Plugin – enables to create custom web forms, easily add forms to blog posts or web pages, collect information from a database.
- Po.st – boosts social sharing, provides detailed analytics and monetizes the sharing that is already happening on your site.
- WP Teacher – a plugin that allows teachers to integrate course content into their personal website to enhance students learning.
- Nav Menu Images – a WordPress plugin that enables uploading of images for nav menu items on a menu edit screen.
- Testimonials by WooThemes – show off what your customers are saying about your business and how great they say you are, using our shortcode, widget or template tag.
- Watu – creates exams with unlimited number of questions and answers. Assigns grade after the exam is taken.
- Ad Code Manager – manages your ad codes through the WordPress admin in a safe and easy way.
- A store locator plugin – gives you the ability to effectively display your important locations in an easily searchable manner using Google Maps.
- Ultimate CMS – an easy to use Plugin to Create, Customize, Manage Custom Post Type, Custom Page Type, Custom Archives, Custom Taxonomies.
- Ultimate Taxonomy Manager – a plugin to customize taxonomies and its custom fields, with great user interface.
- WordPress Exploit Scanner – a plugin that searches the files and database of your website for signs of suspicious activity. It will not stop someone hacking into your site, but it may help you find any uploaded or compromised files left by the hacker.
And in Conclusion:
- “The PHP project is in need of a volunteer” – Rasmus Lerdord has written in Twitter. The PHP project is seeking for a volunteer to help to create and manage a small merchandizing program. The very first task is to find Rasmus email and contact him.
Source: PHP Digest - Zfort Group Blog
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)