{"id":25006388,"url":"https://github.com/e-contract/eid-idp-php-oidc-example","last_synced_at":"2025-08-20T16:05:05.443Z","repository":{"id":275796461,"uuid":"793485839","full_name":"e-Contract/eid-idp-php-oidc-example","owner":"e-Contract","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-29T10:06:42.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T23:44:25.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e-Contract.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-29T10:05:59.000Z","updated_at":"2024-04-29T10:06:45.000Z","dependencies_parsed_at":"2025-02-04T16:51:23.487Z","dependency_job_id":"980cebea-b2cb-43dc-8978-590e41d0c950","html_url":"https://github.com/e-Contract/eid-idp-php-oidc-example","commit_stats":null,"previous_names":["e-contract/eid-idp-php-oidc-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/e-Contract/eid-idp-php-oidc-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-Contract%2Feid-idp-php-oidc-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-Contract%2Feid-idp-php-oidc-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-Contract%2Feid-idp-php-oidc-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-Contract%2Feid-idp-php-oidc-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-Contract","download_url":"https://codeload.github.com/e-Contract/eid-idp-php-oidc-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-Contract%2Feid-idp-php-oidc-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271345718,"owners_count":24743496,"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-08-20T02:00:09.606Z","response_time":69,"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":[],"created_at":"2025-02-05T01:40:42.482Z","updated_at":"2025-08-20T16:05:05.034Z","avatar_url":"https://github.com/e-Contract.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eID Identity Provider OpenID Connect PHP Example\n\nThe PHP example web application demonstrates how to integration the eID Identity Provider of e-Contract.be BV using the OpenID Connect protocol.\nMore information about the supported OpenID Connect protocol is available at:\nhttps://www.e-contract.be/developers/webapp/idp/oidc\n\nWe use Composer to install the required dependencies.\nCheck availability of PHP via:\n```\nphp --version\n```\nCheck availability of composer via:\n```\ncomposer about\n```\nInstall all required dependencies via:\n```\ncomposer install\n```\nIn the following example configuration, replace `$EXAMPLE_HOME` with the actual directory of this example.\n\n\n## macOS\nWe assume that you are using the Homebrew Apache Web Server.\n\nInstall `composer` on macOS via:\n```\nbrew install composer\n```\n\nAdd the following Apache configuration file as `/opt/homebrew/etc/httpd/conf.d/openid-connect-php.conf`, with content:\n```\nAlias /openid-connect-php $EXAMPLE_HOME\n\n\u003cDirectory $EXAMPLE_HOME\u003e\n\tRequire all granted\n\u003c/Directory\u003e\n```\n\nRestart the Apache web server on macOS via:\n```\nbrew services restart httpd\n```\nEnable PHP on Homebrew Apache Web Server as follows.\nAdd to `/opt/homebrew/etc/httpd/httpd.conf`:\n```\nLoadModule php_module /opt/homebrew/lib/httpd/modules/libphp.so\nInclude /opt/homebrew/etc/httpd/extra/httpd-php.conf\nIncludeOptional /opt/homebrew/etc/httpd/conf.d/*.conf\n```\nConfigure `/opt/homebrew/etc/httpd/extra/httpd-php.conf` with:\n```xml\n\u003cIfModule php_module\u003e\n  \u003cFilesMatch \\.php$\u003e\n    SetHandler application/x-httpd-php\n  \u003c/FilesMatch\u003e\n\n  \u003cIfModule dir_module\u003e\n    DirectoryIndex index.html index.php\n  \u003c/IfModule\u003e\n\u003c/IfModule\u003e\n```\nCheck whether PHP is available within the Apache Web Server via:\nhttps://localhost/openid-connect-php/info.php\n\nThe web application should be available at:\nhttps://localhost/openid-connect-php/\n\n## Ubuntu Linux\n\nIf required, install Apache and PHP as follows.\n```\nsudo apt update\nsudo apt install apache2\nsudo apt install php\nsudo apt install php-curl\nsudo apt install libapache2-mod-php\nsudo apt install composer\nsudo a2enmod ssl\nsudo systemctl restart apache2\n```\n\nWe install a self-signed certificate as follows:\n```\nsudo apt install mkcert\nsudo apt install libnss3-tools\nmkcert -install\n```\n\nThe web application should be available at:\nhttps://localhost/openid-connect-php/\n\n\n## Fedora/CentOS Linux\n\nInstall Apache as follows:\n```\nsudo yum install httpd\n```\n\nConfigure Apache HTTPD via `/etc/httpd/conf.d/openid-connect-php.conf` as follows:\n```\nAlias /openid-connect-php $EXAMPLE_HOME\n\n\u003cDirectory $EXAMPLE_HOME\u003e\n\tRequire all granted\n\u003c/Directory\u003e\n```\nChange SELinux configuration via:\n```\nchcon -R -t httpd_sys_content_t $EXAMPLE_HOME\n```\n\nRestart Apache HTTPD via:\n```\nsudo systemctl restart httpd\n```\nThe web application should be available at:\nhttps://localhost/openid-connect-php/\n\n\n## Debugging via NetBeans\n\nDebug PHP via Xdebug in NetBeans:\n```\nsudo dnf install php-pecl-xdebug\nsudo systemctl restart httpd\n```\n\nAdd to `/etc/php.d/xdebug.ini`:\n```\nxdebug.remote_enable=1\nxdebug.remote_handler=dbgp\nxdebug.remote_mode=req\nxdebug.remote_host=127.0.0.1\nxdebug.remote_port=9000\nxdebug.remote_autostart=1\n```\n\n\n## syslog\n\nEnable syslog in `/etc/php.ini`:\n```\nerror_log = syslog\n```\n\nView syslog via:\n```\nsudo journalctl -f\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-contract%2Feid-idp-php-oidc-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-contract%2Feid-idp-php-oidc-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-contract%2Feid-idp-php-oidc-example/lists"}