3
Min read

Meet Yaf… What?

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

5
Min read
18/3/2025
Product Tagging: Are you doing it right?
Why we think one of the most underutilised PIM features is the humble product tag.
Kamba Abudu
Head of Engineering
6
Min read
18/3/2025
Introducing the Venditan Commerce Loyalty System
Learn more about the Loyalty System functionality contained within Venditan Commerce.
Andrew Flynn
Head of Digital Marketing
3
Min read
12/3/2025
Meet the team - Ally
Meet Ally, a developer who’s been with us for a few months now.
Venditan
Company
5
Min read
12/3/2025
What's New in Venditan Commerce? Q1 2025
Notable updates and additions made to Venditan Commerce over the previous quarter.
Andrew Flynn
Head of Digital Marketing
5
Min read
12/3/2025
Venditan Commerce: Going beyond SaaS eCommerce
Venditan Commerce offers a better way forward for retailers who have outgrown their SaaS platform.
steve pownall venditan
Steve Pownall
Head of Business Development
2
Min read
31/1/2025
Venditan joins Futures Exhibition at The Blue Coat School
Venditan were invited to attend the Futures Exhibition at The Blue Coat School in Oldham, Greater Manchester.
Venditan
Company