Company
Date Published
Author
Jeremy Mikola
Word count
1054
Language
English
Hacker News points
None

Summary

The MongoDB team has developed a new PHP driver that aims to improve performance, reduce maintenance burden, and increase flexibility for users. The new driver will consist of two main components: a high-level PHP library and lower-level platform-specific drivers. The PHP library will provide an API similar to the existing 1.x driver and implement common specifications to ensure consistency across all drivers. The platform-specific drivers will expose an identical public API for essential functionality, such as connection management, BSON encoding and decoding, and executing commands and write operations. This architecture allows for decoupling of driver internals and a high-level API into extensions and PHP libraries, making it easier to contribute to the driver and port applications across different PHP runtimes. The new driver is designed to work with MongoDB 3.x and later versions, and its development will continue alongside the maintenance of the existing 1.x driver for users who prefer it.