Written by
Michael Simcoe
Published on
2/4/2015
Share this post
Other posts by:
Michael Simcoe
Head of Technical Operations
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.
8
Min read
14/3/2023
Gaining a competitive advantage in eCommerce
In eCommerce, every advantageous opportunity must at least be considered.

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

8
Min read
6/6/2024
Today’s eCommerce customer pain points
Putting today's eCommerce customer pain points on your radar.
Steph Fenton
Head of Client Services
3
Min read
4/6/2024
Meet the team - Steve
This month we’re catching up with Steve Pownall.
Andrew Flynn
Head of Digital Marketing
6
Min read
1/5/2024
Gen A and the future of order management
How Generation Alpha may impact order management and fulfilment.
Andrew Flynn
Head of Digital Marketing
2
Min read
30/4/2024
Welcome to our new Head of Business Development, Steve!
A warm to welcome to Steve Pownall, our new Head of Business Development.
Venditan
Company
3
Min read
26/4/2024
Meet the team - Mike Simcoe
This month we're catching up with Mike Simcoe, Head of Technical Operations.
Andrew Flynn
Head of Digital Marketing
3
Min read
26/4/2024
Get to know The Dressing Room
A conversation with Deryane Tadd, Founder and Owner of The Dressing Room.
Venditan
Company