{"id":18466373,"url":"https://github.com/mattrmiller/phalcon-dbsessionadapter","last_synced_at":"2025-05-05T08:57:19.150Z","repository":{"id":18542930,"uuid":"21743985","full_name":"mattrmiller/phalcon-dbsessionadapter","owner":"mattrmiller","description":"Phalcon PHP - Database Session adapter using a Model written in PHP","archived":false,"fork":false,"pushed_at":"2018-06-24T19:13:30.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-04T08:55:51.469Z","etag":null,"topics":["phalcon-php","php","session","session-management"],"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/mattrmiller.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":"2014-07-11T16:47:53.000Z","updated_at":"2018-06-24T19:13:31.000Z","dependencies_parsed_at":"2022-07-23T01:32:04.100Z","dependency_job_id":null,"html_url":"https://github.com/mattrmiller/phalcon-dbsessionadapter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrmiller%2Fphalcon-dbsessionadapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrmiller%2Fphalcon-dbsessionadapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrmiller%2Fphalcon-dbsessionadapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrmiller%2Fphalcon-dbsessionadapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattrmiller","download_url":"https://codeload.github.com/mattrmiller/phalcon-dbsessionadapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252310964,"owners_count":21727516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["phalcon-php","php","session","session-management"],"created_at":"2024-11-06T09:16:11.149Z","updated_at":"2025-05-04T08:55:54.682Z","avatar_url":"https://github.com/mattrmiller.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phalconphp-dbsessionadapter\n\nPhalcon PHP - Database Session adapter using a Model.\n\n# Installation\n\n1) Copy Code into Respective Folders\n\n - /app/Library/* \n - /app/Models/*\n\n2) Database Table\n\n```sql\nCREATE TABLE `sessions` (\n  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n  `uuid` varchar(64) NOT NULL DEFAULT '',\n  `data` longtext NOT NULL,\n  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n  `modified_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,\n  PRIMARY KEY (`id`),\n  UNIQUE KEY `uuid` (`uuid`),\n  KEY `created_at` (`created_at`),\n  KEY `modified_at` (`modified_at`)\n) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;\n```\n\n3) Setup Service\n```php\n$di-\u003eset('session', function () use ($oConfig) {\n\n\t\t// Sessions\n\t\treturn new DbSessionAdapter(array(\n\t\t\t'name' =\u003e 'myawesomeapplication',\n\t\t\t'domain' =\u003e 'myawesomeapplication.com',\n\t\t\t'secure' =\u003e 1,\n\t\t\t'use_cookies' =\u003e 1,\n\t\t\t'hash' =\u003e 'sha256',\n\t\t\t'lifetime' =\u003e 0\n\t\t));\n\n\t});\n```\n\n4) Use Like Regular Phalcon Sessions\n\n```php\n$this-\u003esession-\u003eset('enjoy_our_code', 'ok');\n```\n\n# Rules For Contributing\n- Please make sure all changed files are run through gofmt\n- Submit a PR for review\n- Your name will be added below to Contributors\n\n# Author\n[Matthew R. Miller](https://github.com/mattrmiller)\n\n# Contributors\n[Matthew R. Miller](https://github.com/mattrmiller)\n\n# License\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrmiller%2Fphalcon-dbsessionadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattrmiller%2Fphalcon-dbsessionadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrmiller%2Fphalcon-dbsessionadapter/lists"}