Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ This file defines the repository-specific development rules and the operating bo

This PHP library encodes spatial objects to WKB, EWKB, MySQL binary formats, and WKT text.

Source lives in `lib/LongitudeOne/SpatialEncoder/`, using Composer PSR-0 autoloading. `Encoder` delegates conversion to `Strategy/StrategyInterface`; MySQL encoding helpers live in `Strategy/MySQL/`.
Source lives in `lib/`, using Composer PSR-4 autoloading with the `LongitudeOne\SpatialEncoder\` namespace prefix. `Encoder` delegates conversion to `Strategy/StrategyInterface`; MySQL encoding helpers live in `Strategy/MySQL/`.

Strategies preserve X/Y coordinate order. SRIDs do not trigger axis swapping.

Tests mirror the source under `tests/LongitudeOne/SpatialEncoder/Tests/Unit/`.
Tests mirror the source under `tests/Unit/`. Composer PSR-4 development autoloading maps the `LongitudeOne\SpatialEncoder\Tests\` namespace prefix to `tests/`.

Quality tools have separate Composer installations and configuration under `quality/`. CI workflows live in `.github/workflows/`.

Expand Down Expand Up @@ -443,4 +443,4 @@ When uncertain whether a decision is:
- a breaking change;
- or a normative interpretation;

the agent MUST escalate the question rather than silently making the decision.
the agent MUST escalate the question rather than silently making the decision.
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@
"prefer-stable": true,
"minimum-stability": "dev",
"autoload": {
"psr-0": {
"LongitudeOne\\SpatialEncoder": "lib/",
"LongitudeOne\\SpatialEncoder\\Tests": "tests/"
"psr-4": {
"LongitudeOne\\SpatialEncoder\\": "lib/"
}
},
"autoload-dev": {
"psr-4": {
"LongitudeOne\\SpatialEncoder\\Tests\\": "tests/"
}
},
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
displayDetailsOnPhpunitDeprecations="true">
<testsuites>
<testsuite name="spatial-encoder">
<directory>tests/LongitudeOne/SpatialEncoder/Tests</directory>
<directory>tests/</directory>
</testsuite>
</testsuites>
<source>
Expand Down
Loading