{"id":45184574,"url":"https://github.com/moviet/session-scary","last_synced_at":"2026-02-20T10:30:23.216Z","repository":{"id":57020304,"uuid":"161149587","full_name":"moviet/session-scary","owner":"moviet","description":"Scary - A simple php session organizer","archived":false,"fork":false,"pushed_at":"2018-12-25T19:04:35.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-14T04:52:26.812Z","etag":null,"topics":["session-handler","session-manager","session-organizer","session-wrapper","sessions","simple-session"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moviet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-10T09:25:49.000Z","updated_at":"2018-12-25T19:04:37.000Z","dependencies_parsed_at":"2022-08-23T13:50:38.074Z","dependency_job_id":null,"html_url":"https://github.com/moviet/session-scary","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/moviet/session-scary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviet%2Fsession-scary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviet%2Fsession-scary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviet%2Fsession-scary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviet%2Fsession-scary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moviet","download_url":"https://codeload.github.com/moviet/session-scary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moviet%2Fsession-scary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29647865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["session-handler","session-manager","session-organizer","session-wrapper","sessions","simple-session"],"created_at":"2026-02-20T10:30:22.740Z","updated_at":"2026-02-20T10:30:23.205Z","avatar_url":"https://github.com/moviet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Scary - A simple session organizer for php\n======================================================\n\n[![Build Status](https://travis-ci.org/moviet/php-encryption.svg?branch=master)](https://travis-ci.org/moviet/php-encryption)\n[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://doge.mit-license.org)\n[![Usage](https://img.shields.io/badge/usage-easy-ff69b4.svg)](https://github.com/moviet/php-encryption)\n[![codecov](https://codecov.io/gh/moviet/session-scary/branch/master/graph/badge.svg)](https://codecov.io/gh/moviet/session-scary)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fe6415f880494880b69cf574d9248f9d)](https://www.codacy.com/app/moviet/session-scary?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=moviet/session-scary\u0026amp;utm_campaign=Badge_Grade)\n\nA very simple session organizer that may help you for handling scary styles on php\n\n## Requirements\n* Composer for installation\n\n## Quick Start\n\n#### Installation\n```\ncomposer require \"moviet/session-scary\"\n```\n\n## Release\nThe current released is only support for handling happy _global procedural_ session\n\n## Features\n* Create Single Session\n* Generate Multiple Session\n* Evaluate Session\n* Make Auto Increment\n* Custom Session Expiration\n* Regenerate Session Id\n* Remove Session\n\n## Usage\n\n### Create A Single Session\n* You can follow the humble style like below\n  ```php\n  Scary::set('my_token')-\u003evalue('11001101')-\u003eget();\n  ```\n  the above will equivalent\n\n  ```php\n  $_SESSION['my_token'] = '11001101'\n  ```\n\n* Then to get a single session\n  ```php\n  Scary::read('my_token'); // output =\u003e 11001101\n  ```\n  \n  **Notes** : \n  \u003e When you refresh the browser the values will be **save** in session at first, you may need (eg. token, random, url)  \n  and don't want to lost when the page's refresh, just like common it may useful\n\n### Generate Multiple Session\n* You can fashion a session banks on easy away\n   ```php\n   Scary::mset('My Session Manager')\n      -\u003emkey(['Specialist','Senior','Junior'])\n      -\u003emval(['value_1','value_2','value_3'])\n      -\u003eswap();\n   ```   \n* Or you may relax with a free style\n   ```php\n   $keys = ['Specialist','Senior','Junior'];\n   $values = ['Baz','Biz','Buz'];\n\n   Scary::mset('My Session Manager')\n      -\u003emkey($keys) \n      -\u003emval($values)\n      -\u003eswap();\n    ```\n* And then to express your tailor\n  ```php\n  Scary::read('My Session Manager','Junior'); // output =\u003e Buz\n  ```\n\n  **Notes** : \n  \u003e When you refresh the browser the values will be **save** in session at first, you may need (eg. token, random, url)  \n  and don't want to lost when the page's refresh, just like common it may useful\n\n### Evaluate A Session\n* For _single session_, you can replace with new something\n   ```php\n   Scary::change('Angry Boss','Run'); // replace other value eg. Run\n   ```\n* And for _multiple sets_, you can replace like this\n   ```php\n   Scary::mchange('My Bread','My Chocolato','Eat Me');\n   ```\n   \n  Now that was going through changes and you can dump with yayy...\n\n### Make Auto Increment\n* For example you may want to make eg. _login attempt_ using a single method\n   ```php\n   Scary::set('my_key')-\u003evalue('11001101')-\u003einc(5)-\u003eget();\n   ```\n\n* Or using multiple series\n  ```php\n  Scary::mset('My Desire Key')\n     -\u003emkey(['Eat','Drink','Lick','Whatever..'])\n     -\u003emval(['Apple','Orange','Lollipop','Hufft..'])\n     -\u003einc(5) // \u003c=\n     -\u003eswap();\n  ```\n\n  On above example you will get an auto-increment max. **5 times**, start from 0-5\n\n* If you want to verify eg. _session loggedin_, you can write like\n   ```php\n   if (Scary::flinc('My Desire Key') !== true)\n   \n   // Do something\n   ```\n   **Notes** : \n   \u003e It will return **false** when session doesn't exists, then you can do something \n\n### Custom Session Expiration\n* You can recruit a custom flash message, expirated or any creations\n   ```php\n   Scary::set('my_key')-\u003evalue('11001101')-\u003ettl(5)-\u003eget();\n   ```\n   \n* Using multiple happy set\n   ```php\n   Scary::mset('My Desire Key')\n      -\u003emkey(['Smile','Happy','Affraid'])\n      -\u003emval(['Lost','Donate','Any Expression Here'])\n      -\u003eswap();\n\n   Scary::live('My Desire Key', 5) // it can be place in somewhere pages, if return false, you can do something\n   ```\n   **Notes** : \n   \u003e use _**ttl or live**_ like examples on above meant the session will expired within **5 minutes**\n\n### Regenerate Session Id\n* You may doubt with an existing session, you can ensure with this\n   ```php\n   if (Scary::exist('my_session_key'))\n   \n   // Do something\n   ```\n   \n* To regenerate session with create **new id** you can draw this\n   ```php\n   Scary::newId('my_session_key');\n   ```\n   \n* Or using this to **refresh** session_id\n   ```php\n   Scary::refresh('my_session_key'); // session_regenerate_id(true)\n   ```\n\n### Remove Session\n* To **remove** a single session with work like charm\n   ```php\n   Scary::trash('my_session_key');\n   ```\n   \n* And **remove** multiple session at once\n   ```php\n   Scary::trash('chocomelo, durian, alphanut, loggadin, url, token, and...');\n   ```\n   \n* Also you can **destroy** all session and make them gone\n   ```php\n   Scary::clean('my_session_key');\n   ```\n\n## Example\n\n#### Create A Single Session\n```php\nrequire '__DIR__' . '/vendor/autoload.php';\n\nuse Moviet\\Session\\Scary;\n\n// Generate Cross Smile Request Poorgery\n$randomToken = base64_encode(random_bytes(32));\n\nScary::set('Emo Cry Attack')-\u003evalue($randomToken)-\u003eget();\n\n$check = Scary::read('Emo Cry Attack');\n\n// dump : JHs+jsakjkja87823hsalwatah989jsajh+sakCacanana83729Mama=\n```\n\n#### Create Multiple Session\n```php\nrequire '__DIR__' . '/vendor/autoload.php';\n\nuse Moviet\\Session\\Scary;\n\n// Type whatever collection\n$verify = 'true';\n\n// Register what you need\n$loggadId = '2928929-988787-8877-78688868';\n\n// Type secret code etc\n$randomMult = bin2hex(random_bytes(16));\n\n// Type like Adurl\n$downloadUrl = 'github.com/moviet/session-scary';\n\n/** \n* Compile them in single bandage\n*/\nScary::mset('Something key')\n      -\u003emkey(['verify','token_key','mis-loggadin','download-url'])\n      -\u003emval([$verify, $randomMult, $loggadId, $downloadUrl])\n      -\u003eswap();\n\n$getClone = Scary::read('Something key','download-url');\n\n// dump yaaaayyy : github.com/moviet/session-scary\n```\n\n## License\n\n`Moviet/session-scary` is released under the MIT public license. See LICENSE for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoviet%2Fsession-scary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoviet%2Fsession-scary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoviet%2Fsession-scary/lists"}