byjg / gluo-core
Gluo framework core — the glue that binds byjg components into a REST architecture: base classes, attributes, utilities, and builder tools. Start a project with `composer create-project byjg/gluo`.
Requires
- php: >=8.3 <8.7
- byjg/anydataset-db: ^7.0
- byjg/authuser: ^7.0
- byjg/cache-engine: ^7.0
- byjg/config: ^7.0
- byjg/jinja-php: ^7.0
- byjg/mailwrapper: ^7.0
- byjg/micro-orm: ^7.0
- byjg/migration: ^7.0
- byjg/restserver: ^7.0
- byjg/scriptify: ^7.0
- byjg/serializer: ^7.0
- byjg/swagger-test: ^7.0
- zircote/swagger-php: ^6.2
Requires (Dev)
- phpunit/phpunit: ^12.5
- psalm/phar: ^6.16
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-29 23:23:17 UTC
README
| sidebar_key | gluo-core | ||
|---|---|---|---|
| sidebar_category | gluo | ||
| tags |
|
Gluo Core
The Gluo framework core — the glue ("gluo" is Esperanto for glue) that binds the byjg components into a REST architecture.
You normally don't install this package directly. Start a project with the byjg/gluo starter instead:
composer create-project byjg/gluo my-api
The starter generates a project you fully own; byjg/gluo-core stays in vendor/
and framework improvements arrive with a plain composer update.
What's inside
- Base classes —
BaseLoginController,BaseRepository,BaseService,BaseUser,BaseUserProperties,BaseConfigBootstrap - Attributes —
RequireAuthenticated,RequireRole,ValidateRequest - Utilities —
JwtContext,OpenApiContext,FakeApiRequester,OrderBy - Builder —
BaseScripts: database migration entry points, OpenAPI generation, and the code generator (php gluo codegen:*) with its Jinja templates - Console —
Launcher, thephp gluocommand line (built-in and project commands), andChecker, the built-in rows ofphp gluo list --check - Test harness —
BaseApiTestCasefor contract-testing your REST endpoints against the OpenAPI definition - Traits —
OaCreatedAt,OaUpdatedAt,OaDeletedAt
Installation
composer require byjg/gluo-core
Documentation
The full documentation (getting started, guides, and reference) lives in the byjg/gluo starter repository.
Running Tests
composer install vendor/bin/phpunit