latitude
Latitude is a lightweight PHP SQL query builder with no external dependencies, designed to help developers construct database queries programmatically. It follows PHP standards (PSR-1, PSR-2, PSR-4) and is distributed under the permissive MIT license.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | shadowhand/latitude |
| Owner | shadowhand |
| Primary language | PHP |
| License | MIT — OSI-approved |
| Stars | 633 |
| Forks | 52 |
| Open issues | 10 |
| Latest release | Unknown |
| Last updated | 2026-06-24 |
| Source | https://github.com/shadowhand/latitude |
What latitude is
A fluent SQL query builder for PHP that compiles to native SQL without relying on third-party libraries. Supports PSR-1/2/4 compliance and integrates via Composer; last activity recorded June 2026.
Get the latitude source
Clone the repository and explore it locally.
git clone https://github.com/shadowhand/latitude.gitcd latitude# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Verify database dialect support (MySQL, PostgreSQL, SQLite, etc.) aligns with your stack before adoption.
- No formal versioning or release tags visible; pin to a specific commit or Composer constraint to avoid breaking changes.
- Zero dependencies is an advantage for security surface but may limit feature parity with larger frameworks.
- Test query compilation output against your specific database to ensure SQL correctness.
- Plan for in-house maintenance or community contribution if critical fixes are needed; no SLA available.
When to avoid it — and what to weigh
- Complex Domain Logic Required — If your application needs sophisticated relationships, lazy loading, or ORM-level abstractions, a full ORM (Doctrine, Eloquent) will be more productive.
- Active Community Support Expected — With 633 stars and 10 open issues, community activity is modest. If you need rapid issue resolution or frequent updates, larger projects may be safer.
- Multi-Database Abstraction Layer Needed — Latitude's dialect support and portability features are unknown from the data provided; verify compatibility across your target databases before committing.
- Team Unfamiliar with SQL — This is a query *builder*, not an abstraction. Teams more comfortable with ORM conventions may find the learning curve steeper than alternatives.
License & commercial use
Licensed under MIT (SPDX: MIT). Permissive open-source license allowing use in personal and commercial projects, with no restrictions on distribution or modification. See LICENSE.md in the repository for full terms.
MIT license explicitly permits commercial use. README states: 'can be used for any personal or commercial project.' No copyleft, patent, or trademark restrictions are evident from the license text. Recommended to review the full LICENSE.md file to confirm no local amendments.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Adequate |
| License clarity | Clear |
| Deployment complexity | Low |
| DEV.co fit | Good |
| Assessment confidence | High |
No known security audit, CVE history, or formal security policy documented. Zero dependencies reduces supply-chain risk. As with any query builder, ensure parameterized queries are used to prevent SQL injection; review the library's API to confirm parameter binding is enforced or well-documented.
Alternatives to consider
Doctrine DBAL
Mature query builder with multi-database support, wider adoption, and active maintenance. Adds dependencies but provides more features and community support.
Eloquent (standalone)
Laravel's query builder; can be used outside Laravel. Broader feature set and strong community, but larger footprint and implicit conventions.
PDO with prepared statements
Native PHP approach, zero dependencies. Suitable if your queries are simple and you prefer explicit control, but more verbose and error-prone than a builder.
Build on latitude with DEV.co software developers
Our team can help you evaluate, integrate, and optimize Latitude for your specific architecture. Let's discuss your database and query patterns.
Talk to DEV.coRelated open-source tools
Surfaced by semantic similarity across the DEV.co open-source index.
Related on DEV.co
Explore the category and the services that help you build with it.
latitude FAQ
Is Latitude suitable for production?
Does Latitude support multiple database types?
Can I use Latitude with Laravel or other frameworks?
What is the learning curve?
Software development & web development with DEV.co
Need help beyond evaluating latitude? DEV.co is a software development agency offering software development services and web development for teams of every size. Our software developers and web developers build custom software, web applications, APIs, and open-source databases integrations — and maintain them long-term.
Ready to integrate Latitude into your PHP project?
Our team can help you evaluate, integrate, and optimize Latitude for your specific architecture. Let's discuss your database and query patterns.