Download the PHP package thephprame/thephprame-core without Composer
On this page you can find all versions of the php package thephprame/thephprame-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thephprame/thephprame-core
More information about thephprame/thephprame-core
Files in thephprame/thephprame-core
Package thephprame-core
Short Description Core of the phprame framework
License MIT
Informations about the package thephprame-core
thephprame-core
Core utilities and base classes for the phprame PHP micro-framework.
This package contains the core building blocks used by thephprame applications: base controller and model classes, HTTP request/response wrappers, routing helpers, middleware base, and lightweight helpers for files, cookies, encryption and database access.
Key Features
- Minimal, framework-agnostic helpers for small apps
- Base classes: controllers, models and middleware
- Request/Response and routing support
- Small utility helpers: Files, Cookies, Encryption, Database
Installation
If the package is available via Composer (packagist):
For local development (when using this repo as a local package), add a path repository to your application's composer.json and require the package by name:
Then run composer require thephprame/thephprame-core in your application.
Quick Usage
These examples illustrate common patterns — adapt them to your app structure.
Controllers
Extend the base controller to create action methods used by routes:
Models
Create models by extending Model for simple DB interactions:
Routing
Register routes using the Routes helper (see the application's Routes files):
Request / Response
Use Request to access input and Response to send responses:
Utility Classes (brief)
Controller— base controller classModel— base model with simple DB helpersRoutes— route registration helpersRequest/Response— HTTP wrappersMiddleware— base middleware classDatabase/DatabaseHelper— DB connection and helpersEncryption— encryption utilitiesFile/Files— file helpersCookie/Cookies— cookie helpersIException— core exception interface
Contributing
Contributions are welcome. Please open issues or pull requests against the repository. Keep changes focused and include tests/examples where appropriate.
License
The package is distributed under the MIT License. See the composer.json for license metadata.
Authors
See composer.json authors field for package authors.