Download the PHP package 1ff/laravel-mongodb-session without Composer

On this page you can find all versions of the php package 1ff/laravel-mongodb-session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-mongodb-session

Laravel Mongodb Session driver

A MongoDB session driver for Laravel

Laravel
Version
Package
Version
Install using
this command
12.x 7.x.x composer require 1ff/laravel-mongodb-session:^7.0
11.x 6.x.x composer require 1ff/laravel-mongodb-session:^6.0
10.x 5.x.x composer require 1ff/laravel-mongodb-session:^5.0
9.x 4.x.x composer require 1ff/laravel-mongodb-session:^4.0
8.x 3.x.x composer require 1ff/laravel-mongodb-session:^3.0
7.x 2.x.x composer require 1ff/laravel-mongodb-session:^2.0
5.x.x, 6.x 1.x.x composer require 1ff/laravel-mongodb-session:^1.0

Installation

Install using composer:

composer require 1ff/laravel-mongodb-session

Change the connection in config/session.php to the name of the mongo connection from your config/database.php config

'connection' =>  'mongodb',

Update your .env file and change the SESSION_DRIVER to mongodb

SESSION_DRIVER=mongodb

Advantages

Enjoy!

Testing

This package includes a comprehensive test suite to ensure the MongoDB session handler works correctly. The tests cover:

  1. Basic session operations (read, write, destroy)
  2. Integration with Laravel's session system
  3. HTTP session functionality
  4. Laravel's testing helpers integration

Running the Tests

To run the tests, follow these steps:

  1. Make sure MongoDB is installed and running on your system
  2. Install the package dependencies with Composer:

  3. Run the tests with PHPUnit:

Continuous Integration

The package includes a GitHub Actions workflow that automatically runs tests on PHP 8.1 with Laravel 10.x against MongoDB 7. The workflow:

  1. Sets up a MongoDB service container
  2. Installs PHP with MongoDB extension
  3. Caches Composer dependencies for faster builds
  4. Runs the test suite

This ensures all tests pass before merging new changes.

Expected Test Results

When all tests are passing, you should see output similar to:

Testing Environments

The tests are compatible with:

Test Coverage

If you encounter any issues with the tests, please submit an issue on the GitHub repository.


All versions of laravel-mongodb-session with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/session Version ^12.0
mongodb/laravel-mongodb Version ^5.0
ext-mongodb Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package 1ff/laravel-mongodb-session contains the following files

Loading the files please wait ....