PHP Luminova: Requirements for PHP, Web Servers, and Dependencies
System requirements for running Luminova in development and production, including supported operating systems, PHP versions, and required packages. Find the extensions and packages needed for specific database drivers, cache backends, and other integrations.
Luminova requires PHP 8.1 or later in the PHP 8 series, with the JSON and mbstring extensions enabled. Check the PHP version and enabled extensions for both Novakit and your web application. Command-line PHP and the PHP runtime used by your web server may load different configurations.
Install the additional extensions and packages required by the database driver, cache backend, or other integrations your application uses.
Operating System
Luminova supports application development on Windows, macOS, and Linux. If your development and production environments run on different operating systems, check that both support the PHP extensions your application uses.
Primary Requirements
The following PHP version, extensions, and packages are required to run Luminova.
| Requirement | Version constraint | Purpose |
|---|---|---|
php | ^8.1 | PHP 8.1 or later in the 8.x series |
ext-json | * | JSON encoding and decoding |
ext-mbstring | * | Multibyte string handling |
psr/log | ^1.1 | PSR logging interfaces used by Luminova’s logger |
psr/http-client | ^1.0 | PSR HTTP client interfaces used by Luminova’s HTTP clients |
luminovang/framework | ^3.9 | Luminova framework package |
Luminova requires Composer to install and update project dependencies. See the installation guide for setup commands.
Web Server
For local development, run php novakit server from your project directory to start PHP’s built-in web server. Open the address shown in your terminal to view your application. See the Novakit development server guide for host and port options.
For production with Apache or Nginx, set the document root to your project’s public/ directory. Configure the server to serve static files directly and forward application requests to public/index.php. See Installation and Setup for virtual host examples.
Database
Set database.connection in your project’s .env file to switch between PDO and MySQLi. When switching drivers on the same MySQL database, keep your existing host, port, database name, and credentials.
Use PDO with MySQL
Enable the pdo and pdo_mysql PHP extensions and add these settings. To use PDO with PostgreSQL or SQLite, set database.pdo.driver to pgsql or sqlite and enable pdo_pgsql or pdo_sqlite respectively.
database.connection = pdo
database.pdo.driver = mysqlUse MySQLi
Enable the mysqli PHP extension and set database.connection to mysqli. The database.pdo.driver setting applies only to PDO, so you can leave it in place when switching drivers.
database.connection = mysqliSee Establishing a Database Connection for connection settings, sockets, and failover.
Feature Dependencies
Enable the PHP extensions and install the packages needed by the drivers and integrations your application uses.
Optional PHP Extensions
| Extension | When you need it |
|---|---|
ext-curl | Sending requests through the Novio HTTP client. See Novio HTTP client. |
ext-exif | Reading EXIF metadata from images. See Uploaded file image metadata. |
ext-fileinfo | Detecting MIME types from file contents. See MIME detection. |
ext-gd | Resizing images with the NanoImage backend. Install peterujah/nano-image with it. See File renderer. |
ext-imagick | Resizing images with the Imagick backend. See File renderer. |
ext-memcached | Connecting to a Memcached server. See Memcached cache. |
ext-redis | Using the Redis cache driver. Enable the PHP Redis extension and configure a reachable Redis server. See Redis cache. |
ext-igbinary | Reading or writing cache entries or queue payloads in igbinary format. See File cache and Database task queues. |
ext-pdo | Selecting the PDO database driver. Also enable the PDO extension for your database. See PDO driver. |
ext-mysqli | Selecting the MySQLi database driver. See MySQLi driver. |
ext-intl | Using internationalization features such as converting internationalized hostnames to ASCII. See HTTP client IDN settings. |
ext-openssl | Selecting the OpenSSL encryption driver or using other OpenSSL-based operations. See Encryption drivers. |
ext-sodium | Selecting the Sodium encryption driver. See Encryption drivers. |
ext-pcntl | Forking processes in the CLI HTTP socket server. See HTTP socket server. |
Optional Packages
| Package | When you need it |
|---|---|
guzzlehttp/guzzle | Selecting the Guzzle HTTP client. See Guzzle HTTP client. |
phpmailer/phpmailer | Selecting the PHPMailer driver. See Sending email. |
swiftmailer/swiftmailer | Selecting the SwiftMailer driver. See Sending email. |
smarty/smarty | Selecting Smarty as your template engine. See Smarty integration. |
twig/twig | Selecting Twig as your template engine. See Twig integration. |
league/flysystem | Using a Flysystem storage adapter. Install the adapter package for your chosen backend as needed. See Local and cloud storage. |
nanoblocktech/psr-cache | Using PSR-6 cache pools or PSR-16 simple caches. See PSR-6 cache pools and PSR-16 simple caches. |
peterujah/nano-image | Choosing the GD-based resizing backend. See File renderer. |
endroid/qr-code | Generating Base64 QR code images or rendering SVG QR codes locally. TOTP code validation works independently. See TOTP QR codes. |
luminovang/array-functions | Backporting PHP 8.4 array functions to earlier PHP versions. See Global polyfill functions. |
opis/closure | Using the Opis serializer with queued closures and anonymous classes. See Database task queues and Anonymous object serialization. |
firebase/php-jwt | Encoding and decoding JWTs through Luminova’s JWT class. See JWT authentication. |
kreait/firebase-php | Using the Firebase notification integration. See Firebase notifications. |
peterujah/php-timezone-canonicalizer | Using the optional canonicalization backend for timezone names. Used by Luminova\Time\Timezone::canonical(). |
PHPVCI Shared Autoload
Luminova supports optional shared autoloading through PHPVCI. Use it when multiple Luminova applications on the same host need to load framework files from a shared installation. Each application enables PHPVCI in its root .phpvci.php file and points paths.target to the shared framework directory. Set version to the framework version constraint the application expects.
See PHPVCI Admin and PHPVCI PPHP.
For Luminova configuration and setup examples, see the PHPVCI shared autoloading guide.