Helen works as Internet Marketing Manager at Zfort Group, IT Outsourcing service provider. Zfort Group regularly provides qualitative digests on web design and development related topics. Follow our updates. Helen has posted 14 posts at DZone. You can read more from them at their website. View Full User Profile

PHP Digest: Faker PHP Repository, Practical Code Refactoring, the Law of Demeter and Much More

11.06.2012
| 1750 views |
  • submit to reddit

News and Releases:

  1. 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.
  2. 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.
  3. 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.
  4. PHP_CodeSniffer 1.4.1 released – a new version of automatic code checking for compliance to standards system has been released. List of changes.
  5. 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:

  1. PHP to mobile app in 10 minutes – Zend senior director of product management Kent Mitchell creates a cloud-enabled app in PHP.
  2. 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.
  3. 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.
  4. 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.
  5. Web developer – It is believed that PHP becomes less the de facto platform for all web development, and you should think to move to other technologies. Reflecting on the subject the author has made a conclusion that one should not be a PHP / Python / Ruby / JavaScript / Logo / Erlang / ColdFusion / Perl / Scala / Go / Fancylang developer, but should be just a web developer.
  6. 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.
  7. 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.

Training Materials:

  1. 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.
  2. 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.
  3. Swift Email Delivery – offers a flexible and elegant object-oriented approach to sending emails with a multitude of features with the updated Swift Mailer.
  4. Design Patterns Bootcamp – a big presentation on design patterns with examples in PHP by one of Zend Technologies developers.
  5. Puppet or Chef? – a comparison of two popular configuration control systems.
  6. Yii with Symfony2′s Form and Dependency Injection components – a short note on the use of Form and Dependency Injection from Symfony2 in Yii.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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.

CMS/CMF:

  1. 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.
  2. WPEngine Review – lightning Fast WordPress Hosting.
  3. 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.
  4. 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:

  1. Post via Dropbox – allows you to post or edit your blog with text files uploaded via Dropbox.
  2. Detectify – analyzes the level of security on your website or blog via a simulated hacker attack.
  3. Dynamic Forms Plugin – enables to create custom web forms, easily add forms to blog posts or web pages, collect information from a database.
  4. Po.st – boosts social sharing, provides detailed analytics and monetizes the sharing that is already happening on your site.
  5. WP Teacher – a plugin that allows teachers to integrate course content into their personal website to enhance students learning.
  6. Nav Menu Images – a WordPress plugin that enables uploading of images for nav menu items on a menu edit screen.
  7. 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.
  8. Watu – creates exams with unlimited number of questions and answers. Assigns grade after the exam is taken.
  9. Ad Code Manager – manages your ad codes through the WordPress admin in a safe and easy way.
  10. A store locator plugin – gives you the ability to effectively display your important locations in an easily searchable manner using Google Maps.
  11. Ultimate CMS – an easy to use Plugin to Create, Customize, Manage Custom Post Type, Custom Page Type, Custom Archives, Custom Taxonomies.
  12. Ultimate Taxonomy Manager – a plugin to customize taxonomies and its custom fields, with great user interface.
  13. 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:

  1. “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 

0
Published at DZone with permission of its author, Helen Romanenko.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags: