Rofl this is the Weekly PHP Classes newsletter of Thursday - 2016-08-18

Automate Your Shipping

Web-Based Shipping Fast and Simple. Start a Free Trial of ShipStation 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 specialists forum threads

Subject Updated on
Electronic Dynamic Currency Convertor Script
Need eDCC(Electronic Dynamic Currency Convertor) Script


  • Latest PHP Classes blog posts

  • Notable PHP package: PHP YouTube Movie Trailers (1 day 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 (3 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.
  • Notable PHP package: PHP Detect Google Crawler (6 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 (8 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 (8 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 (10 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 (13 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 (15 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.
  • 3 Methods to Discover Ideas to Create New Software Product Businesses with Good Potential - Fix My Software Product Business (18 days ago)

    Posted on: 2016-07-31
    Summary: According to a recent survey, many developers would like to create their own business selling software products to many customers but they do not have any good ideas of products that could sell well.

    Fortunately there are methods that you can apply to come up with good software product ideas and then figure if they have good market potential even before you start developing the software products.

    Watch this video with a consulting session with a developer to learn more about those methods, so you can start applying them to have great software product ideas with good business potential.
  • Notable PHP package: Jaxon (20 days ago)

    Posted on: 2016-07-29
    Summary: Many Web applications have browser side (JavaScript) code making AJAX calls to server side code in PHP that is mapped to classes of objects.

    Usually the server side code needs to register classes or functions that will handle the AJAX calls.

    However, when you have many classes to handle your Web application AJAX calls, registering classes one by one can be a tedious time consuming task.

    The package provides a more efficient method to register many classes at once. You just specify a directory and the package will lookup and load the classes on demand when the AJAX calls are received.

    This way you also do not have to waste time instantiating objects of the handler classes until they are necessary.

    Read this article to learn more details about how this notable PHP package works.
  • PHP Articles Report July 2016 Edition (21 days ago)

    Posted on: 2016-07-28
    Summary: This is the July edition of the podcast hangout recorded by Manuel Lemos and Arturs Sosins to comment on the latest outstanding PHP Articles published recently.

    They commented on articles about using DevSense PHP Tools extension to develop and debug PHP applications with Visual Studio, automating actions on Mac OS X using PHP scripts, using reactive programming to develop more efficient PHP applications, debugging remote projects with PHPEd, and a new series of short videos to tell why developers should create their own software products and sell to many customers, and what are the main mistakes to avoid to become successful doing that.

    Listen to the podcast, or watch the hangout video to learn more about these PHP articles.
  • Notable PHP package: CMS Airship (22 days ago)

    Posted on: 2016-07-27
    Summary: PHP is often blamed for being an insecure language. This is not a fair claim because, as a language, PHP is not more insecure than most other Web programming languages.

    The bad reputation could be attributed to some applications like WordPress and others that can be easily extended with plugins developed by programmers that may not be so security aware as they should.

    The CMS Airship package is a content management system package that was developed and managed to be secure by design.

    It is mainly a blog engine with support for multi-site environments.

    It can be extended with add-ons that can be reviewed and controlled by the community, thus helping to quickly fix any security matters that the community finds.

    Read this article to learn more details about how this notable PHP package works.
  • How to Protect My Software Product Ideas? Fix My Software Product Business (24 days ago)

    Posted on: 2016-07-25
    Summary: Many developers have great ideas for software products but they fear to have their ideas stolen by competitors and lose the credit and the opportunities to succeed.

    Watch this video with a consulting session with a developer that gets advice on how to protect their software products, so they can succeed even if any competitors try to copy them.
  • PHP and JavaScript Innovation Award Report July 2016 Edition - April 2016 nominees (27 days ago)

    Posted on: 2016-07-22
    Summary: This is the July 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 April 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: Faster PHP IP2Location (29 days ago)

    Posted on: 2016-07-20
    Summary: IP2Location is a well known service that uses database files to determine the location of IP addresses of given ranges.

    Usually it uses the binary search method to find the location of a given IP address, so it reduces the amount of information to be read from IP2Location database file.

    The class implements a more optimized method to lookup the location of IP address in pure PHP code. It departs from a database file from IP2Location more efficient data structures to lookup.

    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 12
2 Khaled Al-Shamaa Syria Syria 5
3 Cesar D. Rodas Paraguay Paraguay 3
4 Olaf Lederer The Netherlands The Netherlands 2
5 Alexander Skakunov Ukraine Ukraine 2
6 Eric Sizemore United States United States 2
7 Rafael Espinosa Cuba Cuba 1
8 solomongaby Romania Romania 1
9 Larry Wakeman United States United States 1
10 the DtTvB Thailand Thailand 1


Innovation award results

Congratulations to Joubert RedRat!

Rank Class Author Score Points Prize
1 PHP AJAX Table
Load HTML tables dynamically using AJAX
Joubert RedRat Brazil 21.21% 13 One big elePHPant Plush Mascott
2 Simple Flash Messages
Display message with different CSS frameworks
Yuriy Tkachenko Russian Federation 15.15% 12 PhpStorm IDE 1 year individual subscription
2 Zephir HandlerSocket Client
Access MySQL tables as NoSQL with HandlerSocket
Victor Bolshov Russian Federation 15.15% 12 One subscription to the PDF edition of the PHP Architect magazine
4 Vehicle Simulator
Simulate the functions of different vehicle types
Chi Hoang France 12.12% 10 One downloadable copy of PhpED Professional
5 PHP Time Zone Mapper
Get time zone for a given latitude and longitude
Ahmad Retha United Kingdom 9.09% 9
5 Stringizer
Manipulate multibyte text strings as objects
jasonlam604x Canada 9.09% 9
7 WordPress Hosted Content Importer
WordPress plugin to import content hosted remotely
Bimal Poudel Nepal 6.06% 7
8 PHP Nuclear Reactor
Asynchronous RESTful API using ReactPHP and PIMF
Gjero Krsteski Germany 3.03% 6
8 Italian Cities and Postal Code checker
Search Italian cities, postal codes and addresses
Orazio Principe Italy 3.03% 6
8 PHP TheSportsDb
Get game information from the Sports DB site API
Jelle Sebreghts Belgium 3.03% 6
8 PHP Webdav Calendar Pusher
Send and receive ICS calendar events via WebDav
Ismail Çak?r Turkey 3.03% 6
12 PHP Bracket Checker Parser
Parse expressions and return if brackets match
Hakob Hakobyan Armenia <1.00% 2
12 Phalcon Cashier
Access subscription services provided by Stripe
Thien Tran Viet Nam <1.00% 2

Nominees to win the award of July of 2016

Class: PHP String Socializer
Description: Replace text with hash tags and social media links
Author: Luciano Salvino
Country: Argentina

Class: PHP IIN and BIN
Description: Identify card issuer and bank from numbers
Author: Yorch Ponce
Country: Mexico

Class: BladeOne
Description: Standalone template engine that compiles into PHP
Author: Jorge Castro
Country: Chile

Class: Rabbit ORM
Description: ORM for CodeIgniter based on Laravel's Eloquent
Author: Fabio Mazzo
Country: Brazil

Class: PHP Small Server Administrator
Description: Web panel for small Debian and Ubuntu servers
Author: Aleksey Nemiro
Country: Russian Federation

Class: Automator Shell Action Tools
Description: Process console input and environment variables
Author: Karl Holz
Country: Canada

Class: Faster PHP IP2Location
Description: Faster method to find the location of IP addresses
Author: Chi Hoang
Country: France

Class: CMS Airship
Description: Content management system with security features
Author: Scott Arciszewski
Country: United States

Class: Deferred Exceptions
Description: Queue exceptions and throws them afterwards
Author: magog
Country: Russian Federation

Class: PHP Silex REST Multi Lazy Load
Description: Create REST APIs with module lazy loading
Author: John Diaz
Country: Colombia

Class: Jaxon
Description: Call PHP classes from JavaScript using AJAX
Author: Thierry Feuzeu
Country: France, Metropolitan



Latest support forum threads

Subject Posted on Class
json_encode needs UTF-8
In file_list, $details filename must be UTF-8 encoded
2016-08-17 PHP Web Site Compare Files
Parse error: Movie.php
Parse error: Movie.php
2016-08-17 PHP YouTube Movie Trailers
Pb with regexp
impossible to minimize a regexp array
2016-08-15 PHP Minify JS, CSS and PHP
Can Other languages like java, C#, C++ decrypt the encryption
2016-08-14 PHP AES-128-CBC Encryption and Decryption
Error caused by an undefined variable
Undefined variable: warning (at line 1941)
2016-08-13 MIME E-mail message parser
Why? const SCHEMA_REL_OFFICEDOCUMENT = 'schemas.
Package rating comment
2016-08-12 Simple XLSX
Exactly what I needed.
Package rating comment
2016-08-12 Send e-mail with an embeded picture


  • Latest package entries

  • Fox micro framework

    Picture of Joubert RedRat
    Author: Joubert RedRat
    Date: 2016-08-17 (1 day ago)
    Groups: PHP 5, Libraries, Design Patterns
    Description: This package is a model view controller micro-framework.

    It provides base MVC classes to implement Web applications.

    Currently it provides a router class that dispatches the request to a controller class based on the request URL, a view class that loads the current view script, a database access class, a configuration class to set environment variables, etc..
  • PHP UDP Hole Punching

    Picture of Nick Daniels
    Author: Nick Daniels
    Date: 2016-08-17 (1 day ago)
    Groups: Networking, PHP 5, P2P
    Description: This package can be used to connect to network peers through a UDP server.

    There is a client class that sends UDP packets to a server listening to a given port on a given IP address to request the list of other network clients that connected to the server.

    The server class returns the list of IP addresses and ports of connected clients and sends another UDP message to IP address and port of each client.

    The server also keeps sending ping packets to determine if each client is still connected.
  • PHP Auth Class

    Picture of Con vertor
    Author: Con vertor
    Date: 2016-08-16 (2 days ago)
    Groups: PHP 5, Databases, User Management
    Description: This class can register and login users stored in a database.

    It can perform several actions to manage records of users in a database accessed using PDO. Currently it can:

    - Create the records of a new registered user and mail the user a URL with a gkey
    - Activate account with a given key
    - Authenticate a user with a password and optional CAPTCHA verification and create a login session
    - Logout from a user session
    - Request to reset the user password
    - Change the user password
    - Delete user records

    The class uses bcrypt to store hashed passwords,

    It can also verify and block attackers by IP for a defined time after a given number of failed login attempts.

    The class can as well prevent registration of users with known disposable email addresses.
  • PHP YouTube Movie Trailers

    Picture of Nitesh Apte
    Author: Nitesh Apte
    Date: 2016-08-16 (2 days ago)
    Groups: Web services, Video, PHP 7
    Description: This package can fetch and show YouTube movie trailers without an API key.

    It can send an HTTP requests to the YouTube site to retrieve and parse the YouTube search result pages for a trailer of a given movie.

    The class extracts the identifier of the first result video and generates HTML to embed that video in a Web page.
  • MyLogin

    Picture of Yorch Ponce
    Author: Yorch Ponce
    Date: 2016-08-15 (3 days ago)
    Groups: PHP 5, User Management, Social Networking
    Description: This package can authenticate users using Facebook, Twitter or Google.

    It can perform OAuth authentication of a user redirecting to either Facebook, Twitter or Google authorization pages.

    If the user is successfully authenticated with any of these OAuth providers, session variables will be set with the user profile details.
  • PHP Builder Pattern Generator

    Picture of Asher Wolfstein
    Author: Asher Wolfstein
    Date: 2016-08-15 (3 days ago)
    Groups: PHP 5, Language, Code Generation
    Description: This package can generate code for classes with the builder design pattern.

    It takes the name of a class, list of methods and a namespace and dynamically generate code for a class with those definitions.

    The package returns an object of the dynamically generated class.
  • Number to Text in Persian

    Picture of Keivan Sohrabloo
    Author: Keivan Sohrabloo
    Date: 2016-08-14 (4 days ago)
    Groups: Localization, PHP 5, Text processing
    Description: This class can convert a numbers to text in Persian.

    It can take a given number and returns a string that spells that numbers with words in Persian.

    This class is based on the Num2TextEnglish class.
  • PHP AES-128-CBC Encryption and Decryption

    Picture of Takis Maletsas
    Author: Takis Maletsas
    Date: 2016-08-13 (5 days ago)
    Groups: PHP 5, Cryptography
    Description: This class can encrypt and decrypt data using mcrypt.

    It can encrypt data with a given key or generates a random key to encrypt the data using mcrypt. It also encodes the data before encrypting.

    The class can also decrypt previously encrypted data with the class.

    Picture of Gabriel Almeida
    Author: Gabriel Almeida
    Date: 2016-08-12 (6 days ago)
    Groups: Files and Folders, User Management, PHP 7
    Description: This class can manage user session stored in file using cookies.

    It can create authenticated user sessions using cookies and store logged user data in files in the JSON format.

    The class can also check if the user is logged, get the logged user data, and end the logged user session.
  • PHP Detect Google Crawler

    Picture of G