-
Notifications
You must be signed in to change notification settings - Fork 1
Versioning
An application built around the APIne Framework as two version numbers. There's a version number for the framework itself and one for the application. The application version number is in the VERSION
file located on the root of the project.
The Versionning Utility allows to fetch version numbers for both the framework and the application. Add the following line to the import declarations to access the utility.
use Apine\Core\Version;
// Fetch the version of the framework
$kernel_version = Version::framework();
// Fetch the version of the application
$application_version = Version::application();
The format allowed by the utility follows semantic versioning. Look the following link for more information on semantic versioning : http://semver.org/
It is also possible to apply a version number to a module in the modules folder. Create a file named VERSION
in the folder of the said module and write a valid version number inside the file. The version number will be accessible from the module
method of the Apine\Core\Version
class.
// Fetch the version of a module
$module_version = Version::module('user');
- Introduction
- Getting Started
- Requirements & Installation
- Application Configuration
- Database Connection
- How to use Controllers
- How to use Views
- How to Manage Session
- How to use the api (Coming Soon)
- Utilities
- Entity Manager
- File Manager
- Access and Save File (Coming Soon)
- Image Methods (Coming Soon)
- XML Manager
- XML Class (Coming Soon)
- Parser (Coming Soon)
- Writer (Coming Soon)
- Advanced Topics
- Extended Users
- Routes
- Templating (Coming Soon)
- Translations and Locales