stefangabos / Zebra_Session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking
https://stefangabos.github.io/Zebra_Session/Zebra_Session/Zebra_Session.html
Other
172 stars 85 forks source link

Composer autoload not working #6

Closed jmathai closed 7 years ago

jmathai commented 9 years ago

When using composer's autoloader it doesn't seem to be able to find Zebra_Session.

user# cat composer.json
{
  "minimum-stability": "dev",
  "require": {
    "stefangabos/zebra_session": "dev-master"
  }
}

user# ls vendor/stefangabos/zebra_session/Zebra_Session.php
vendor/stefangabos/zebra_session/Zebra_Session.php

user# cat test.php
<?php
include 'vendor/autoload.php';
$session = new Zebra_Session;

user# php test.php
Fatal error: Class 'Zebra_Session' not found in /Users/jaisenmathai/dev/zebra-test/test.php on line 4
tecnicaz commented 9 years ago

Any light on this issue?