Written by
Michael Simcoe
Published on
2/4/2015
Share this post
Other posts by:
Michael Simcoe
Head of Technical Operations
6
Min read
1/10/2024
Managing advanced shipping rules at scale
Exploring how advanced shipping rules can help reduce headaches.
7
Min read
6/6/2023
Migrating from Shopify? 8 crucial considerations
What you must consider if you are migrating from Shopify to another eCommerce platform.

At Venditan, we like to keep up with the latest technology to assist our eCommerce website development.

In January of last year, the stable 2.2.9 release Yaf (Yet Another Framework) was released and we just had to have a play. Yaf is the first PHP MVC framework to be written in C and built as a PHP extension. The framework was written by laruence, who is also a PHP development team member leading APC development. It is considered the fastest and lowest resource consuming PHP framework around at the moment, and has been well tested in production applications in a number of large organisations.

As of now, we have three websites in production that are implemented using Yaf, and the performance is incredible, not that this is unexpected since it’s written in C. The benchmarks completed on Yaf are also overwhelming, with one result showing that Yaf is able to make 5331 requests per second, opposed to 634 requests per second for Zend, and 2300 requests per second for CodeIgniter.

Caught your attention? I hope so, but where to start? Yaf is a PECL extension and as such is easy to install. The documentation available is fairly limited, with the most detailed documentation written in Chinese which proves a little difficult to understand using Google Translate. We were fortunate enough to find some example PHP applications on Github which we were able to review to help us write our first sample application. I found the following flowchart helped me understand Yaf better and allowed me to see Yaf’s support for Bootstrap and its plug-in mechanism.

Over the past year, we have written a Yaf application that uses our VenditanSDK to communicate with the Venditan eCommerce API. We have extended on the Yaf Route Interface, allowing us to manage the routing based on responses from the API. Adding to the router stack within the Bootstrap is very simple and documented well within the PHP Docs.

Final thoughts

In future posts we will look at the benchmarks in greater detail and how we overcame issues such as multiple template sets, but I hope this quick look at Yaf has inspired you to take a closer look.

Our recent posts

Keep up to date with the latest news and insight from the team at Venditan

6
Min read
1/10/2024
Managing advanced shipping rules at scale
Exploring how advanced shipping rules can help reduce headaches.
Michael Simcoe
Head of Technical Operations
4
Min read
30/9/2024
5 advantages of our platform’s product data model
Explaining how our platform structures your product data.
Kamba Abudu
Head of Engineering
5
Min read
29/9/2024
Effective eCommerce content strategies for today's customer
Techniques to improve your product, blog and general website content strategy.
Andrew Flynn
Head of Digital Marketing
3
Min read
28/9/2024
Get to know The Equine Warehouse
Discover the journey of The Equine Warehouse with insights from director Paul Ryan.
Venditan
Company
4
Min read
27/9/2024
Meet the team - John Coyne
John reflects on on the evolution of eCommerce, emerging trends, leadership, and Venditan's future.
Venditan
Company
8
Min read
29/8/2024
Optimising product listing pages with rich content and UI
Optimising PLPs to boost user engagement, search rankings and sales.
Callum Brocklehurst
Senior Web Developer