Releases: jandersongarcia/echostack
Releases · jandersongarcia/echostack
Version 1.0.1 – Automatic Database Migration with Smart Logger
What's New
- Added support for automatic database migration via
AUTO_MIGRATE=true
in the.env
file. - The migration script automatically runs
auth-migrations.sql
if theusers
table does not exist. - After a successful migration, the
AUTO_MIGRATE
flag is automatically set to false in the.env
. - All operations are logged using
LoggerFactory
, including failures and inconsistencies. - Error logs are sent to Telegram (if configured).
Structure
- New file:
bootstrap/auto_migrate.php
- The file
core/migrations/auth-migrations.sql
is expected to contain the initial SQL schema. - Table existence is checked using
SHOW TABLES LIKE 'users'
.
Security
- No
echo
or HTML/CLI output is used. All feedback is handled through internal logging. - Logs include IP address, user agent, URI, and UID for full traceability.
How to Use
-
Add the following to your
.env
file:AUTO_MIGRATE=true
Version 1.0.0 – First stable release
This is the first stable release of EchoAPI 🎉
EchoAPI is a PHP microstack designed for developers who want to build RESTful APIs quickly, with structure and minimal coupling — without relying on heavy frameworks.
✅ Included Features:
- Routing with AltoRouter
- Lightweight ORM with Medoo
- Authentication via:
- API Key
- JWT (with CLI-generated endpoints)
- OAuth 2.0 (Google, Microsoft, LinkedIn, GitHub, etc.)
- Role-based access and token management
- Caching using Symfony Cache (Filesystem and Redis)
- Logging via Monolog (with daily rotation and critical alerts via Telegram)
- CLI automation for:
- Modules (Controller, Service, Model)
- Full CRUD generation from database tables
- JWT Auth setup
- OAuth provider integration
- Swagger/OpenAPI documentation generator
- Full Docker support (PHP 8.3 + MySQL + Redis)
- Automatic DB migration using the
AUTO_MIGRATE
flag
👤 Default user for testing:
- Email:
[email protected]
- Password:
master!123@
After the first setup, it’s strongly recommended to disable
AUTO_MIGRATE
in your.env
to prevent overwriting data.
Feel free to use, fork, contribute or give feedback.
Thanks to everyone who followed along 🚀
#php #api #backend #opensource #developer