Tutorials and Talks How to Pass a PHP Variable to a Menu Item Link

Knowledge Base support case for AllWebMenus Pro, abstracted and stripped of all user’s private info.



Using Composer to Install JavaScript, CSS and Images Under the Web Document Directory

By default Composer installs all package files under the vendor directory. If you want to install asset files in the Web document root directory, you need to resort to another solution. This Asset Manager package is a plugin that extends Composer to install any package files outside the vendor directory.



Translate Your Website with PHP and gettext

This article shows you how to add internationalisation to your website using PHP and gettext (PHP plugin).



PHP Job Interview Task: Day of Week Calculation

Recently Bruno Skvorc was given a job interview task, to write a function which deduces the day of a standard 7-day week of ANY calendar (even an imaginary one). Some provisions included making sure he knew how often leap years happen, how many months their year has and how many days each month has.



Stored Procedures in MySQL and PHP

Put simply, a Stored Procedure ("SP") is a procedure (written in SQL and other control statements) stored in a database which can be called by the database engine and connected programming languages. In this tutorial, we will see how to create an SP in MySQL and execute it in MySQL server and in PHP.



Message Queues: Comparing Beanstalkd, IronMQ and Amazon SQS

This article introduces the concept of message queues and discusses the strengths and weaknesses of three specific message queue services: Beanstalkd, IronMQ and Amazon SQS.



Acceptance Testing With Codeception

Typically new features for web applications are tested by visiting the appropriate page in a browser, maybe filling out some form data, submitting the form and then developers or testers hope to see their desired result. This is the natural way most web developers test their apps. We can continue with this natural testing process and improve upon it to ensure our apps are as stable as possible by using Codeception.



BDD With Behat

The BDD PHP framework Behat allows you to test your PHP applications using human-readable sentences to write features and scenarios about how your applications should behave, in order to test out its functionality. We can then run these tests to see if our application is behaving as expected. Let’s spend about 15 minutes quickly going over Behat’s installation process and learn how we can test our PHP applications behaviour using the basics.



Playing with Dependency Injection in PHP

Dependency Injection is a software design pattern that allows you to avoid hard-coding dependencies, and makes it possible to change the dependencies both at runtime and compile time.



Setting Up a LAMP Stack on Debian

Setting up a test environment can be a tricky thing when you compile PHP from scratch. As others have mentioned in the past, installations from Aptitude (and the like) lag behind which can quickly put your test environment out of date. Taking inspiration from other excellent articles, Dan Barrett has created this guide to setting up a LAMP stack on Debian in great detail. Knowledge Base support case for AllWebMenus Pro, abstracted and stripped of all user’s private info.By default Composer installs all package files under the vendor directory. If you want to install asset files in the Web document root directory, you need to resort to another solution. This Asset Manager package is a plugin that extends Composer to install any package files outside the vendor directory.This article shows you how to add internationalisation to your website using PHP and gettext (PHP plugin).Recently Bruno Skvorc was given a job interview task, to write a function which deduces the day of a standard 7-day week of ANY calendar (even an imaginary one). Some provisions included making sure he knew how often leap years happen, how many months their year has and how many days each month has.Put simply, a Stored Procedure ("SP") is a procedure (written in SQL and other control statements) stored in a database which can be called by the database engine and connected programming languages. In this tutorial, we will see how to create an SP in MySQL and execute it in MySQL server and in PHP.This article introduces the concept of message queues and discusses the strengths and weaknesses of three specific message queue services: Beanstalkd, IronMQ and Amazon SQS.Typically new features for web applications are tested by visiting the appropriate page in a browser, maybe filling out some form data, submitting the form and then developers or testers hope to see their desired result. This is the natural way most web developers test their apps. We can continue with this natural testing process and improve upon it to ensure our apps are as stable as possible by using Codeception.The BDD PHP framework Behat allows you to test your PHP applications using human-readable sentences to write features and scenarios about how your applications should behave, in order to test out its functionality. We can then run these tests to see if our application is behaving as expected. Let’s spend about 15 minutes quickly going over Behat’s installation process and learn how we can test our PHP applications behaviour using the basics.Dependency Injection is a software design pattern that allows you to avoid hard-coding dependencies, and makes it possible to change the dependencies both at runtime and compile time.Setting up a test environment can be a tricky thing when you compile PHP from scratch. As others have mentioned in the past, installations from Aptitude (and the like) lag behind which can quickly put your test environment out of date. Taking inspiration from other excellent articles, Dan Barrett has created this guide to setting up a LAMP stack on Debian in great detail.