PHPackages                             mnavarrocarter/sqlx - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mnavarrocarter/sqlx

ActiveLibrary[Database &amp; ORM](/categories/database)

mnavarrocarter/sqlx
===================

Simple, low-overhead relational database toolkit for modern PHP applications

10[3 issues](https://github.com/mnavarrocarter/sqlx/issues)PHP

Since Nov 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mnavarrocarter/sqlx)[ Packagist](https://packagist.org/packages/mnavarrocarter/sqlx)[ RSS](/packages/mnavarrocarter-sqlx/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SQLX
====

[](#sqlx)

Simple, low-overhead relational database toolkit for modern PHP applications.

[![php-workflow](https://github.com/mnavarrocarter/sqlx/actions/workflows/php.yml/badge.svg?branch=main)](https://github.com/mnavarrocarter/sqlx/actions/workflows/php.yml/badge.svg?branch=main)[![code-coverage](https://camo.githubusercontent.com/c7d24cc89cc482beb7c24e24497df3a60a738c89292732932d7610e13b1a0610/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7665726167652d37362532352d79656c6c6f772e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)](https://camo.githubusercontent.com/c7d24cc89cc482beb7c24e24497df3a60a738c89292732932d7610e13b1a0610/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7665726167652d37362532352d79656c6c6f772e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)

Quick Start
-----------

[](#quick-start)

You can map any of your classes as an entity just marking with the `SQLX\Entity` attribute and marking the id fields with the `SQLX\Id` attributes. All the other stuff can be guessed at runtime.

Of course, you can also be explicit by passing the `SQLX\Field` annotation.

```
