{"id":31585104,"url":"https://github.com/linna/auth-mapper-pgsql","last_synced_at":"2025-10-06T01:27:58.604Z","repository":{"id":39614056,"uuid":"209962835","full_name":"linna/auth-mapper-pgsql","owner":"linna","description":"Postgres mapper implementation of the authentication and authorization interfaces ","archived":false,"fork":false,"pushed_at":"2023-12-12T09:51:09.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-29T16:32:11.167Z","etag":null,"topics":["authentication","authorization","mapper","php","postgresql"],"latest_commit_sha":null,"homepage":null,"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}},"created_at":"2019-09-21T10:04:50.000Z","updated_at":"2022-06-24T16:50:18.000Z","dependencies_parsed_at":"2023-12-11T08:39:22.174Z","dependency_job_id":null,"html_url":"https://github.com/linna/auth-mapper-pgsql","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.0714285714285714,"last_synced_commit":"9ed1060d0fbd6294d89cdb99864a274540ec60e1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/linna/auth-mapper-pgsql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-pgsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-pgsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-pgsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-pgsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linna","download_url":"https://codeload.github.com/linna/auth-mapper-pgsql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linna%2Fauth-mapper-pgsql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278547774,"owners_count":26004772,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","php","postgresql"],"created_at":"2025-10-06T01:27:56.607Z","updated_at":"2025-10-06T01:27:58.594Z","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-pgsql.png\" alt=\"Linna Auth Mapper Pgsql 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-pgsql/actions/workflows/tests.yml/badge.svg)](https://github.com/linna/auth-mapper-pgsql/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 postgresql through php pdo.\n\n# Requirements\n   \n   * PHP \u003e= 8.1\n   * PDO extension\n   * Postgresql extension\n   * linna/framework v0.28.0|next\n\n# Installation\nWith composer:\n```\ncomposer require linna/auth-mapper-pgsql\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-pgsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinna%2Fauth-mapper-pgsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinna%2Fauth-mapper-pgsql/lists"}