{"id":31715016,"url":"https://github.com/linna/auth-mapper-mysql","last_synced_at":"2026-03-04T18:02:24.836Z","repository":{"id":39615629,"uuid":"155237916","full_name":"linna/auth-mapper-mysql","owner":"linna","description":"Mysql mapper implementation of the authentication and authorization interfaces ","archived":false,"fork":false,"pushed_at":"2023-12-12T09:45:43.000Z","size":227,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T01:07:10.943Z","etag":null,"topics":["authentication","authorization","mapper","mappers","mysql","php"],"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/linna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-10-29T15:43:44.000Z","updated_at":"2023-11-08T15:59:51.000Z","dependencies_parsed_at":"2022-08-22T09:31:40.293Z","dependency_job_id":"eec25b53-f4dd-4a5c-8f54-e6e9e087386d","html_url":"https://github.com/linna/auth-mapper-mysql","commit_stats":{"total_commits":53,"total_committers":3,"mean_commits":"17.666666666666668","dds":0.3584905660377359,"last_synced_commit":"059b34007d0c3400b69cb334e35b156670da4a5d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/linna/auth-mapper-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linna","download_url":"https://codeload.github.com/linna/auth-mapper-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30088339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: 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":["authentication","authorization","mapper","mappers","mysql","php"],"created_at":"2025-10-09T01:50:25.989Z","updated_at":"2026-03-04T18:02:24.784Z","avatar_url":"https://github.com/linna.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"#\"\u003e\u003cimg src=\"logo-linna-128.png\" alt=\"Linna Logo\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"#\"\u003e\u003cimg src=\"logo-auth-mysql.png\" alt=\"Linna Auth Mapper Mysql Logo\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Tests](https://github.com/linna/auth-mapper-mysql/actions/workflows/tests.yml/badge.svg)](https://github.com/linna/auth-mapper-mysql/actions/workflows/tests.yml)\n[![PDS Skeleton](https://img.shields.io/badge/pds-skeleton-blue.svg?style=flat)](https://github.com/php-pds/skeleton)\n[![PHP 8.1](https://img.shields.io/badge/PHP-8.1-8892BF.svg)](http://php.net)\n\n\u003c/div\u003e\n\n\u003e **_NOTE:_**  Code porting to PHP 8.1 ongoing.\n\n# About\nThis package provide a concrete implementation for the authentication interfaces and \nfor the authorization interfaces of the framework.\n\nMappers use as persistent storage mysql through php pdo.\n\n# Requirements\n   \n   * PHP \u003e= 8.1\n   * PDO extension\n   * MySQL extension\n   * linna/framework v0.28.0|next\n\n# Installation\nWith composer:\n```\ncomposer require linna/auth-mapper-mysql\n```\n\n# Package Content\n\n### Interfaces from Framework\n* `Linna\\Authentication\\EnhancedAuthenticationMapperInterface`\n* `Linna\\Authorization\\PermissionExtendedMapperInterface`\n* `Linna\\Authorization\\PermissionMapperInterface`\n* `Linna\\Authorization\\RoleExtendedMapperInterface`\n* `Linna\\Authorization\\RoleMapperInterface`\n* `Linna\\Authorization\\UserExtendedMapperInterface`\n* `Linna\\Authorization\\UserMapperInterface`\n\n### Implementation\n* `Linna\\Authentication\\EnhancedAuthenticationMapper`\n    - deleteOldLoginAttempts()\n    - fetchAll()\n    - fetchAttemptsWithSameIp()\n    - fetchAttemptsWithSameSession()\n    - fetchAttemptsWithSameUser()\n    - fetchById()\n    - fetchLimit()\n* `Linna\\Authorization\\PermissionExtendedMapper`\n* `Linna\\Authorization\\PermissionMapper`\n    - fetchAll()\n    - fetchById()\n    - fetchByName()\n    - fetchByRole()\n    - fetchByRoleId()\n    - fetchByRoleName()\n    - fetchByUser()\n    - fetchByUserId()\n    - fetchByUserName()\n    - fetchLimit()\n    - fetchUserPermissionHashTable()\n    - permissionExistById()\n    - permissionExistByName()\n* `Linna\\Authorization\\RoleExtendedMapper`\n    - addUser()\n    - addUserById()\n    - addUserByName()\n    - grantPermission()\n    - grantPermissionById()\n    - grantPermissionByName()\n    - removeUser()\n    - removeUserById()\n    - removeUserByName()\n    - revokePermission()\n    - revokePermissionById()\n    - revokePermissionByName()\n* `Linna\\Authorization\\RoleMapper`\n    - fetchAll()\n    - fetchById()\n    - fetchByName()\n    - fetchByPermission()\n    - fetchByPermissionId()\n    - fetchByPermissionName()\n    - fetchByUser()\n    - fetchByUserId()\n    - fetchByUserName()\n    - fetchLimit()\n* `Linna\\Authorization\\UserExtendedMapper`\n    - addRole()\n    - addRoleById()\n    - addRoleByName()\n    - grantPermission()\n    - grantPermissionById()\n    - grantPermissionByName()\n    - removeRole()\n    - removeRoleById()\n    - removeRoleByName()\n    - revokePermission()\n    - revokePermissionById()\n    - revokePermissionByName()\n* `Linna\\Authorization\\UserMapper`\n    - fetchAll()\n    - fetchById()\n    - fetchByName()\n    - fetchByPermission()\n    - fetchByPermissionId()\n    - fetchByPermissionName()\n    - fetchByRole()\n    - fetchByRoleId()\n    - fetchByRoleName()\n    - fetchLimit()","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinna%2Fauth-mapper-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinna%2Fauth-mapper-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinna%2Fauth-mapper-mysql/lists"}