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: WordPress 3.5 Release, PHP OOP, Cross Domain AJAX Guide and Much More

12.18.2012
| 961 views |
  • submit to reddit

This digest of the freshest news from the PHP world was prepared for you by Zfort Group development team. Enjoy!

News and releases:

  1. WordPress 3.5 release – A new version of the popular CMS with many changes has been released and downloaded more than 1 million times.
  2. Web And PHP, 9 issue – In this issue: How to complete multiple projects much faster?; Where does a PHP developer fit in this whole “Agile thing”?; PHP 5.4 Overview; Why is my Database Slowing Down? and others.
  3. ext/mysql deprecation in PHP 5.5 – In the recent issue of the digest, we mentioned the necessity to encourage developers to use advanced API for working with MySQL. And now, it has been decided that the use of ext / mysql in PHP 5.5 will generate an error of E_DEPRECATED class. And here is thecommit itself.

PHP:

  1. PHP OOP: Objects Under The Hood – An excellent article, revealing details of the internal implementation of objects in PHP. The author tells us in detail about the object life cycle, the way the objects are stored in memory, what is ‘$this’ and much more.
  2. Why some people hate PHP – The author gives us a detailed response to this question, identifying the following several main reasons: inconsistent signatures, PHP is an HTML with logic, lack of standards, lack of packages (manager dependencies), lack of information about the current state of PHP, elitism (“not to use PHP is really cool”).
  3. Why I Have Given Up on Coding Standards – The author of the post gives us reasons why he has decided to give up coding standards, and encourages other developers to review the processes and perhaps to follow his example.

Training materials:

  1. Speeding up PHP-based development with HipHop VM – In late 2011 Facebook team announced the release of a just-in-time (JIT) compilation approach called HipHop VM (HHVM) as a successor to the HipHop PHP-to-C++ compiler (HPHPc). This post discusses the latest Hip-Hop VM updates, describing some details of the virtual machine architecture and optimization strategy.
  2. Introduction to Standard PHP Library (SPL) Part-1 – A good overview of SPL. Looking forward to be continued.
  3. Sample Application on Phalcon PHP: Album O’Rama – Demo release to showcase the power of Phalcon. In this demo a music album library has been created where one can get information about their favorite artists, discover new music and much more. It has been decided to add volume in this application to showcase how Phalcon behaves with a lot of data: > 5,000 Artists, > 50,000 Albums, > 30,000 Album tags, > 20,000 Artists tags, > 100,000 Tracks, > 200,000 Photos. Demo and code.
  4. On Templating – A look at templating in web applications. The author makes a brief review of the PHP templating in the past, and then speaks about more modern instruments such as Mustache and their advantages.
  5. Yii data provider iterator – Useful recipe to use CDataProviderIterator for data providers when they need to process large amounts of data, but it’s impossible to load all the data into the memory at once.
  6. The state of meta programming in PHP – Metaprogramming is quite an interesting sub-discipline and knowing about certain techniques and tools allows you to cut corners quite dramatically for certain tasks.
  7. Dependency Injection in PHP – Simple and clear article that explains what is Dependency Injection, providing an example of refactoring using DI, main advantages and typical use cases.
  8. References in PHP. Programming With Anthony Ferrara – Variables in PHP are being explored, as well as the way they work under the hood. The video shows how references work, and the difference between “variable references” and “object references”.
  9. Prepared Statements. Programming With Anthony Ferrara – The video shows how prepared statements work, and why they are the preferred method for database interaction.
  10. Inversion of Control – The author describes in detail what is Inversion of Control, defining the link between DI and IoC, and then demonstrating the benefits of using the inversion of control on an example of a blog.
  11. Connection Handling with the MongoDB PHP driver – An article on the recent PHP driver – MongoDB ver 1.3. Connection processing comparison with the previous version is given in the article alongside with an overview of  advanced capabilities of the new driver. Practical examples in PHP are also considered in the post.
  12. Sending Email with Swift Mailer – A simple example how to use the basic features of a famous library to send emails (sending text messages, a letter with an attachment, templating).
  13. Build Automation with Composer Scripts – Composer is not only a resolver for managing external project dependencies and versioning constraints, but it can also be used as a basic build automation tool.
  14. A silex love story – ‘Embedded’ PHP – The author tells us about his first experience with PHP microframework Silex for PHP 5.3. A real example shows how the code has been evolved while the project was being developed.
  15. Action Automation with MySQL Trigger – Although transferring of the application logic to the database triggers is considered to be a bad idea, however, there are some cases when their use is justified and helps to solve tasks easier. This article describes triggers themselves and provides examples of their use.
  16. PHP Error: Examples, API, Customization – If you are an experienced developer, this article will help you to structure your knowledge. If you are just a PHP beginner, this post will give you an exhaustive amount of information on PHP errors.
  17. 5 Things CodeIgniter Cannot Do (without a rewrite) – The author lists and describes five key features presented in almost any modern PHP framework, but they are still absent in CodeIgniter: Autoloading, Namespaces, Database Schema Abstraction, Unit-Testing, Good Migrations.
  18. PHPitfalls – The author shares his knowledge in PHP and gives a lot of useful advice for developers.
  19. Cross Domain AJAX Guide – The author tells us about three main methods to implement cross-domain requests, as well as about their special features: CORS, JSONP, Iframe.
  20. Private Methods. Pro or Contra? – The subject has provoked a great discussion. The post received a wave of comments and, in particular, a response post from Anthony Ferrara. Later the author wrote another post in further defense. And then, Larry Garfield, a well-known person in the Drupal field, stated his own opinion on the issue.
  21. Tweetable PHP-Non Alpha – An interesting experiment where the author writes PHP script without using numeric and alphabetic characters.
  22. The Underground PHP and Oracle Manual – Oracle specialists have updated and posted an excellent free book that contains unique material on OCI8 PHP extension to work with Oracle database, as well as on other components of PHP-Oracle ecosystem. The book shows PHP developers how to use PHP and Oracle together easily and effectively.

CMS/CMF:

  1. Using NGINX, PHP-FPM+APC and Varnish to make WordPress Websites fly.
  2. Inserting Widgets With Shortcodes in WordPress.
  3. How To Become A Top WordPress Professional.

Plugins releases for WordPress

  1. ElasticSearch WordPress Plugin replaces the default WordPress search with ElasticSearch.
  2. Fast Secure Contact Form for WordPress or PHP – This free contact form software lets your visitors send you a quick E-mail message, blocking all common spammer tactics.
  3. HyperDB – an advanced database class that supports replication, failover, load balancing, and partitioning.
  4. Fonts plug-in allows you to add More Font Styles & Sizes To Your Visual Editor in WordPress.
  5. Authy for WordPress adds Authy two-factor authentication to WordPress. Users opt in for an added level of security that relies on random codes from their mobile devices.
  6. Search Exclude excludes any post or page from the search results..
  7. GC Message Bar is a light plugin which allows you to place a catchy message and a Call To Action button to the top or bottom of your website..
  8. Memory Load Consumption and db size Usage indicates Memory and db Usage on WordPress Backend, shows Memory Load and db size on Footer and Max Memory Consumption on Admin Bar or ToolBar.
  9. Keyring is an authentication framework that handles authorization with external web services.
  10. Rich Contact Widget comes with enhanced markup for microdatas & microformats, so that search engines can use it in their search results.
  11. Schema Creator by Raven inserts schema.org microdata into WordPress pages and posts.

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: