Rofl this is the Weekly PHP Classes newsletter of Thursday - 2016-09-01

Don't write ETL scripts

Developers shouldn't write ETL scripts. Consolidate your data in minutes. No API maintenance, scripting, cron jobs, or JSON wrangling required. Sign up today.
Rofl you are getting this message as free service for being a user of the PHP Classes site to which you registered voluntarily using the email address If you wish to unsubscribe go to the unsubscribe page.

This newsletter is always available online and upto date at: .


  • Latest PHP Classes blog posts

  • Notable PHP package: PHP SSH Connection Session (2 days ago)

    Posted on: 2016-08-30
    Summary: SSH is a protocol to communicate with a remote server via a secure connection that allows to execute commands on a remote machine.

    However, the length of the commands that can be executed is limited.

    This package provides a workaround for this limitation that consists in creating a shell script to execute long commands and execute it using the bash shell.

    Read this article to learn more details about how this notable PHP package works.
  • 5 Phases to Create Software Products that Will Be Perfect for Your Customers (3 days ago)

    Posted on: 2016-08-29
    Summary: Many software products failed because their developers did not start by listening to their customers problems.

    Learning about the customers problems is the first of 5 phases of a method called Design Thinking. When well applied this method can lead to the creation of products that are perfect for their customers.

    Watch this video to learn how you can apply this method to design your software products in a short period of time and get what customers really need even before you start writing a line of code.
  • PHP and JavaScript Innovation Award Report August 2016 Edition - May 2016 nominees (6 days ago)

    Posted on: 2016-08-26
    Summary: This is the August edition of the Innovation Award podcast hangout recorded by Manuel Lemos and Arturs Sosins to comment on the outstanding features of all the past month nominees and winners PHP and JavaScript packages, the prizes that the authors earned, starting with the nominees from the month of May 2016.

    Listen to the podcast, or watch the hangout video to learn why the nominated packages were considered to be innovative, as well the current rankings of the Innovation Award Championship by author and by country.
  • Notable PHP package: PHP Builder Pattern Generator (7 days ago)

    Posted on: 2016-08-25
    Summary: The builder design pattern allows to dynamically create objects in a way that the same process of construction can allow multiple representations of the object that can be changed over time according to the needs of a project.

    This package implements the builder design pattern with a concrete builder class that generates code for classes dynamically to implement a representation of the object class being built at run time.

    Read this article to learn more details about how this notable PHP package works.
  • Notable PHP package: CakePHP 2.x Container (9 days ago)

    Posted on: 2016-08-23
    Summary: Dependency injection is design pattern often used implement functionality on one class using objects from external classes without hardcoding the dependency between the two classes.

    Several PHP frameworks implement their own dependency injection containers but since each one implements it in a different way, a generic container interface was defined to allow to call components of one framework to be called from by components of any other framework.

    The package implements a component with the generic dependency injection container interface so application services and other types of applications not based on CakePHP can be easily used with CakePHP.

    Read this article to learn more details about how this notable PHP package works.
  • How to Create Your Own Software Product Business Without Quitting Your Day Job (10 days ago)

    Posted on: 2016-08-22
    Summary: Many developers want to create their own software product business but they still need money to support themselves, and so cannot quit their day jobs.

    Watch this very short video to learn about a simple tip on how you still can create your own business without having to quit your current job.
  • Notable PHP package: PHP UDP Hole Punching (13 days ago)

    Posted on: 2016-08-19
    Summary: When you want to connect to a remote machine that is connected to a group of peers but you do not know its address, one common solution is to connect to central server and ask the addresses of the peers to communicate with them.

    This technique is used by NAT servers (Network Address Translators) that are often running on router machines in order to route requests to remote machines from local network computers.

    This process is called hole punching because it uses an intermediary server to get the addresses of the remote machines, so the client can communicate with them.

    This PHP package implements a server with one class that can keeps the list of connected client machines and returns the list of peer addresses and ports.

    The client class connects to the server class to get the peer machine address list, so it can send messages to them using UDP packets.

    Read this article to learn more details about how this notable PHP package works.
  • Will Lazy Statements Make PHP 7 Programming More Efficient ? Lately in PHP podcast episode 74 (14 days ago)

    Posted on: 2016-08-18
    Summary: A recent proposal is being discussed for PHP 7 feature called lazy statements. It would allow developers to assign values to variables based on code that is only executed when the variable is accessed for the first time, thus avoiding executing the code if the variable ends up never being accessed.

    That was one of the main topics discussed by Manuel Lemos and Arturs Sosins in the episode 74 of the Lately in PHP podcast hangout.

    They also talked about the HTTPoxy vulnerability that affects some important PHP projects, as well the usual proposals for upcoming PHP versions like autoloading for global functions, different syntax for returning $this for classes that provide fluent interfaces, support for arbitrary method in the built-in PHP Web server, a new structured object notation for creating objects, etc..

    They also mentioned features to be discontinued in PHP 7.1 like SSL 2 support and some extensions that will not ship with PHP 7.1 anymore.

    This article includes a transcript of the podcast summary.

    Listen to the podcast, or watch the hangout video, or read the summary transcript to learn more about these interesting PHP topics.
  • Notable PHP package: PHP YouTube Movie Trailers (15 days ago)

    Posted on: 2016-08-17
    Summary: YouTube is certainly the most popular video hosting site on the Web.

    It is used to publish all sorts of videos including trailers of many movies often way before they are released in theathers.

    This package can access the YouTube site to perform searches for trailers of specific movies, so it can extract the video identifiers of the trailer movies. It generates HTML to embed those videos on other site Web pages.

    Since it just scrapes the YouTube search result pages, it does not need to use an API key.

    Read this article to learn more details about how this notable PHP package works.
  • How to Pick Partners for a Software Product Business? - Fix My Software Product Business (17 days ago)

    Posted on: 2016-08-15
    Summary: When creating a software product business most developers prefer to just deal with with the software development part.

    However, somebody should take care of the marketing, sales, finances, human resources, etc.. The best way to cover for these business needs is to bring people specialized on these areas, so you can continue to focus on the software development efforts.

    But how should you keep them interested working for your company? Should you hire them or make them business partners? How do you pick business partners that will not cause you trouble later?

    Watch this consulting session video to learn how to answer these questions so your business grows in a healthy manner with great partners.
  • Fast PHP Error Monitoring and Bug Fixing with Rollbar (18 days ago)

    Posted on: 2016-08-14
    Summary: Regardless of how good you are as a developer, you will always ship code to production that will have bugs or does not deal with situations that were unanticipated.

    Therefore you always need to have a tool that can monitor the errors on the server side, so you can act promptly and fix issues as quickly as possible.

    Read this tutorial to learn how you can use Rollbar to keep track of your PHP Web applications issues.
  • Notable PHP package: PHP Detect Google Crawler (20 days ago)

    Posted on: 2016-08-12
    Summary: Google is the most popular search engine. Being well ranked on Google is important for many sites to get nice organic traffic.

    Many sites try to serve content for Google crawler bots as fast as possible, so that increases the chances of the sites pages to rank well.

    In theory it is easy to detect when the Google bot is accessing a Web page. It is usually a matter of detecting the user agent string sent with requests from the Google bot crawler.

    However, there are crawlers and malicious bots that pretend to be the real Google bot faking its user agent string.

    This class provides a more robust way to detect whether a request is coming from Google bot or not.

    It just gets the HTTP client IP address and resolves its host name to verify if it really has one of the known Google bot domains.

    Read this article to learn more details about how this notable PHP package works.
  • 10 High Growth Companies Hiring PHP Developers (22 days ago)

    Posted on: 2016-08-10
    Summary: PHP is so popular that sometimes fans of other languages question if PHP is still that popular in the hope that PHP developers move on to the languages of their preference.

    The fact is that PHP continues to be so popular that large companies have still great demands for qualified PHP developers.

    Read this article to learn about some of the high growth companies that continue to look for great PHP developers.
  • Notable PHP package: PHP Web Site Compare Files (22 days ago)

    Posted on: 2016-08-10
    Summary: Sometimes it is necessary to verify if the files of a site on the server are up to date and were not changed eventually by an attacker that took advantage of a security hole.

    There are some solutions that compute hashes of all the files in the server but they do not tell whether the files different because they are not up to date with the latest development version or were changed eventually due to a security attack.

    This class provides a solution that uses a different approach. It calls a script on the server that lists the existing files.

    This way it can compare list of files on the production and the development environments, or even compare the files installed on different production or testing servers.

    Read this article to learn more details about how this notable PHP package works.
  • How Can I Make My Software Product Highly Desired by the Customers? - Fix My Software Product Business (24 days ago)

    Posted on: 2016-08-08
    Summary: Many developers have already started working on software products before making sure that there is a good demand for those products.

    Later they realize that the product is nice but it is really not essential for their users, so they may not be able to make much sales.

    Fortunately there is a method that can be used to convert a non-essential product into a highly desired software product that their users feel they cannot live without.

    Watch this video with a consulting session with a developer to learn more about this method and how you can apply it in practice in a new product or in a product that has already started being developed.
  • Notable PHP package: eKatab PHP ePub Reader (27 days ago)

    Posted on: 2016-08-05
    Summary: ePub is a common format of eBooks supported by many eBook reader devices.

    Basically ePub files are ZIP archives with files of the contents of the ebook.

    This class can extract the contents of a ebook in the ePub format and parse it, so the ebook pages can be viewed on Web pages.

    Read this article to learn more details about how this notable PHP package works.
  • Notable PHP package: Deferred Exceptions (29 days ago)

    Posted on: 2016-08-03
    Summary: Sometimes you need to call different functions in sequence. However if one of the functions throws an exception you may not be able to execute the other functions unless you catch the exceptions of each function.

    Putting try and catch statements around every function call may be tedious and boring task.

    This package provides an alternative solution. It provides a trait that allows you to queue multiple exceptions thrown by classes that use the trait.

    This way you can have access to the whole list of thrown exceptions throw the last or all exceptions that happened.

    Read this article to learn more details about how this notable PHP package works.


Top friends of the site

Friends of the PHP Classes site is a initiative to provide recognition to the users that contribute to the growth of the site community.

For more information on how to become a friend of the site look here.

Rank Friend Referrals
1 Arturs Sosins Latvia Latvia 11
2 Olaf Lederer The Netherlands The Netherlands 4
3 Khaled Al-Shamaa Syria Syria 3
4 Cesar D. Rodas Paraguay Paraguay 3
5 Alexander Skakunov Ukraine Ukraine 2
6 Alexandre Miguel de Andrade Souza Brazil Brazil 1
7 solomongaby Romania Romania 1
8 Larry Wakeman United States United States 1
9 the DtTvB Thailand Thailand 1
10 Eric Sizemore United States United States 1


Innovation award results

Congratulations to Aleksey Nemiro!

Rank Class Author Score Points Prize
1 PHP Small Server Administrator
Web panel for small Debian and Ubuntu servers
Aleksey Nemiro Russian Federation 24.14% 11
2 Jaxon
Call PHP classes from JavaScript using AJAX
Thierry Feuzeu Cameroon 17.24% 10
3 Faster PHP IP2Location
Faster method to find the location of IP addresses
Chi Hoang France 13.79% 9
4 Rabbit ORM
ORM for CodeIgniter based on Laravel's Eloquent
Fabio Mazzo Brazil 10.34% 8
5 PHP String Socializer
Replace text with hash tags and social media links
Luciano Salvino Argentina 6.90% 7
5 BladeOne
Standalone template engine that compiles into PHP
Jorge Castro Chile 6.90% 7
5 CMS Airship
Content management system with security features
Scott Arciszewski United States 6.90% 7
5 PHP Silex REST Multi Lazy Load
Create REST APIs with module lazy loading
John Diaz Colombia 6.90% 7
9 Automator Shell Action Tools
Process console input and environment variables
Karl Holz Canada 3.45% 3
9 Deferred Exceptions
Queue exceptions and throws them afterwards
magog Russian Federation 3.45% 3
11 PHP IIN and BIN
Identify card issuer and bank from numbers
Yorch Ponce Mexico <1.00% 1

Nominees to win the award of August of 2016

Class: CakePHP 2.x Container
Description: Interoperable container integration with CakePHP
Author: Nerijus
Country: Lithuania

Class: PHP Domain Driven Design
Description: Domain driven design using domain logic classes
Author: Nemeth Zoltan
Country: Hungary

Class: ITE Collection
Description: Manage sets of arrays or objects as collections
Author: Kiril Savchev
Country: Bulgaria

Class: eKatab PHP ePub Reader
Description: Display ebooks in the epub format on Web pages
Author: Karl Holz
Country: Canada

Class: PHP Web Site Compare Files
Description: Compare the list of files of two Web sites
Author: Roger George
Country: United States

Class: PNG Hex Color Modifier
Description: Replaces a color in a PNG image by another color
Author: Bruno Henrique Ferreira de Oliveira
Country: Brazil

Class: PHP Detect Google Crawler
Description: Check if an access is from Google checking its IP
Author: G