PHP Digest: Wordpress 3.5 Release, PHP OOP, Cross Domain AJAX Guide and Much More
So what's new in the PHP world? Find out in our latest PHP digest!
News and releases:
- Wordpress 3.5 release – A new version of the popular CMS with many changes has been released and downloaded more than 1 million times.
- 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.
- 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 the commit itself.
- 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.
- 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").
- 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.
- 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.
- Introduction to Standard PHP Library (SPL) Part-1 – A good overview of SPL. Looking forward to be continued.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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".
- Prepared Statements. Programming With Anthony Ferrara – The video shows how prepared statements work, and why they are the preferred method for database interaction.
- 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.
- 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.
- 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).
- 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.
- 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.
- 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.
- 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.
- 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.
- PHPitfalls – The author shares his knowledge in PHP and gives a lot of useful advice for developers.
- 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.
- 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.
- Tweetable PHP-Non Alpha – An interesting experiment where the author writes PHP script without using numeric and alphabetic characters.
- 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.
- Using NGINX, PHP-FPM+APC and Varnish to make WordPress Websites fly.
- Inserting Widgets With Shortcodes in WordPress.
- How To Become A Top WordPress Professional.
Plugins releases for WordPress
- ElasticSearch WordPress Plugin replaces the default WordPress search with ElasticSearch.
- 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.
- HyperDB – an advanced database class that supports replication, failover, load balancing, and partitioning.
- Fonts plug-in allows you to add More Font Styles & Sizes To Your Visual Editor in WordPress.
- 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.
- Search Exclude excludes any post or page from the search results..
- 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..
- 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.
- Keyring is an authentication framework that handles authorization with external web services.
- Rich Contact Widget comes with enhanced markup for microdatas & microformats, so that search engines can use it in their search results.
- Schema Creator by Raven inserts schema.org microdata into WordPress pages and posts.
Read our web development and
business optimization guides
Compare in-house offshore
software developer payroll costs
Check the available resources for
a quick project start
Join our newsletter!
Get weekly updates of the top IT news delivered straight to your inbox