joomla/session
Framework-agnostic PHP 8.1+ session management from the Joomla Framework. Provides interfaces and utilities to start and manage sessions, store and retrieve session data, and integrate session handling cleanly within your application.
joomla/console IntegrationThe Session package can be integrated with an application using the joomla/console package to provide additional helpers in your application.
The session:create-table command can be used when your application uses the Joomla\Session\Handler\DatabaseHandler as its session handler to ensure the required database table has been created. Instantiating this command requires the database driver to be provided.
// /path/to/console.php
use Joomla\Console\Application;
use Joomla\Database\DatabaseFactory;
use Joomla\Session\Command\CreateSessionTableCommand;
$application = new Application;
$dbFactory = new DatabaseFactory;
$dbDriver = $dbFactory->getDriver('mysql', []);
$command = new CreateSessionTableCommand($dbDriver);
$application->addCommand($command);
$application->execute();
php /path/to/console.php session:create-table
How can I help you explore Laravel packages today?