appel/sqlite-functions

A polyfill for various SQL functions that SQLite doesn't natively support.

v0.1.2 2021-02-03 20:45 UTC

This package is auto-updated.

Last update: 2024-03-29 04:11:46 UTC


README

This is a little PHP package that adds common SQL functions to SQLite. Useful when you're using MySQL or Postgres as your main database connection, but you want to use SQLite for testing, and keep getting those annoying "No such function" errors for stuff like DATE_FORMAT.

It still needs a lot of work, so all PRs are welcome.

Installation

composer require --dev appel/sqlite-functions

If you're using Laravel, the service provider and function macros will be registered automatically for you.