Download the PHP package gears/session without Composer

On this page you can find all versions of the php package gears/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 session

Looking for maintainers, I no longer do much if any PHP dev, I have moved on, mostly work in dotnet core, node.js & golang these days. If anyone is keen to take over these projects, get in touch - [email protected]

The Session Gear

Build Status Latest Stable Version Total Downloads License

Laravel Sessions Standalone

Okay so by now hopefully you have heard of Laravel, the PHP framework that just makes things easy. So first things first full credit goes to Taylor Otwell for the Session API.

How to Install

Installation via composer is easy:

composer require gears/session:*

How to Use

In your legacy - non Laravel application. You can use the Laravel Session API like so:

NOTE: The dbConfig array must describe a valid db connection. This array is passed directly to $capsule->addConnection For more info on this see:

Now you can use code like the following:

For more info on the Session API it's self see: http://laravel.com/docs/session

NOTE: While the Laravel Session API does provide support for many different drivers. This package only supports the database driver (for now).

WARINING: Do not use the built in native PHP session functions and / or the global $_SESSION array

Our Extra Method: hasExpired

To my current knowledge of Laravel, there is no built in way to work out if a Session has been set but then expired. So in a normal Laravel app if you wanted to display a "Your Session has expired!" message you would need to do some custom filters or something... see:

http://stackoverflow.com/questions/14688853/check-for-session-timeout-in-laravel

But with Gears\Session just call:

So now for the why?

While laravel is so awesomely cool and great. If you want to pull a feature out and use it in another project it can become difficult. Firstly you have to have an innate understanding of the IoC Container.

You then find that this class needs that class which then requires some other config variable that is normally present in the IoC when run inside a normal Laravel App but in your case you haven't defined it and don't really want to define that value because it makes no sense in your lets say legacy application.

Perfect example is when I tried to pull the session API out to use in WordPress. It wanted to know about a method, which I think comes from . At this point in time I already had to add various other things into the IoC to make it happy and it was the last straw that broke the camels back, I chucked a coders tantrum, walked to the fridge, grabbed another Redbull and sat back down with a new approach.

The result is this project.


Developed by Brad Jones - [email protected]


All versions of session with dependencies

PHP Build Version
Package Version
Requires gears/di Version *
illuminate/session Version 4.*
illuminate/database Version 4.*
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 gears/session contains the following files

Loading the files please wait ....