Skip to content

Commit

Permalink
fix to readme and adding phpunit test script to composer
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Feb 21, 2023
1 parent ae54cbe commit 2a9868d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ require 'vendor/autoload.php'; // set up autoloading using composer

$memcached = new \Memcached(); // create connection to memcached
$memcached->addServer('localhost', 11211);
$handler = new \Detain\SessionSamurai\Memcached($memcached);
$handler = new \Detain\SessionSamurai\MemcachedSessionHandler($memcached);
session_set_save_handler($handler, true);
```

Expand All @@ -48,7 +48,6 @@ session_set_save_handler($handler, true);
* [ramazancetinkaya/session-handler](https://github.com/ramazancetinkaya/session-handler): A PHP library for secure session handling.
* [davidlienhard/sessionhandler](https://github.com/davidlienhard/sessionhandler): 🐘 php sessionhandler using database connection
* [zahycz/sessionless](https://github.com/zahycz/sessionless): Non-I/O blocking SessionHandler implementation using Nette/Caching
* [detain/session-samurai](https://github.com/detain/session-samurai): A custom PHP session save handler for storing sessions as JSON in memcached.
* [javis/php-memcached-sessions](https://github.com/javis/php-memcached-sessions): A PHP session handler that uses memcached to store session with multiple servers, failover and replication support.
* [PHP Cache](https://www.php-cache.com/en/latest/) - PHP-Cache Documentation
* [The Cache Component](https://symfony.com/doc/current/components/cache.html#available-cache-adapters) (Symfony Docs)
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
"phpcs": "./vendor/bin/phpcs",
"phpcs-diff": "@composer changed-files | xargs ls -d 2>/dev/null | xargs ./vendor/bin/phpcs",
"phpstan": "./vendor/bin/phpstan analyse",
"phpunit": "./vendor/bin/phpunit --bootstrap tests/Bootstrap.php tests/src/MemcachedSessionHandlerTest.php",
"test": [
"@phpcs",
"@phpstan"
"@phpstan",
"@phpunit"
]
},
"config": {
Expand Down

0 comments on commit 2a9868d

Please sign in to comment.