
RavenDB PHP Client has been released
by Oren Eini
published: November 18, 2022 |updated: November 11, 2026
I recently talked about the beta release of the RavenDB PHP client a few months ago. I’m now really pleased to announce that we have just released the official RavenDB PHP client.
Here is what this looks like:
use RavenDB\Documents\DocumentStore;
use YourClass\Company;
$store = new DocumentStore(["http://localhost:8080" ], "Northwind")
$store->initialize();
{ // save a new document
$session = $store->openSession();
$entity = new Company("My Company Name");
$session->store($entity);
$session->saveChanges();
}
{ // query on the data
$session = $store->openSession();
$companies = $session->query(Company::class)
->whereGreaterThan("numberOfEmployees", 12)
->toList();
}
Woah, already finished? 🤯
If you found the article interesting, don’t miss a chance to try our database solution – totally for free!

