{"id":21638773,"url":"https://github.com/novactive/almaviacxcaptchetatbundle","last_synced_at":"2025-04-11T16:51:11.477Z","repository":{"id":246325812,"uuid":"820768691","full_name":"Novactive/AlmaviaCXCaptchEtatBundle","owner":"Novactive","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-03T15:02:18.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T18:57:45.685Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Novactive.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-27T06:28:09.000Z","updated_at":"2025-04-03T15:01:53.000Z","dependencies_parsed_at":"2024-06-27T07:23:30.804Z","dependency_job_id":"aae1cff4-dbd7-4d4c-9bc5-03ba73abba7e","html_url":"https://github.com/Novactive/AlmaviaCXCaptchEtatBundle","commit_stats":null,"previous_names":["novactive/almaviacxcaptchetatbundle"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FAlmaviaCXCaptchEtatBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FAlmaviaCXCaptchEtatBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FAlmaviaCXCaptchEtatBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novactive%2FAlmaviaCXCaptchEtatBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Novactive","download_url":"https://codeload.github.com/Novactive/AlmaviaCXCaptchEtatBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442978,"owners_count":21104310,"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":[],"created_at":"2024-11-25T04:11:36.551Z","updated_at":"2025-04-11T16:51:11.450Z","avatar_url":"https://github.com/Novactive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AlmaviaCX CaptchEtat Bundle\n\n----\n\nThis repository is what we call a \"subtree split\": a read-only copy of one directory of the main repository.\nIt is used by Composer to allow developers to depend on specific bundles.\n\nIf you want to report or contribute, you should instead open your issue on the main repository: https://github.com/Novactive/Nova-eZPlatform-Bundles\n\nDocumentation is available in this repository via `.md` files but also packaged here: https://novactive.github.io/Nova-eZPlatform-Bundles/master/2FABundle/README.md.html\n\n----\n\nThis bundle provide a form type to use CaptchEtat (https://api.gouv.fr/les-api/api-captchetat) on your website\n\n## Installation\n\n### Requirements\n\n* Ibexa 4\n* PHP 7.4 || 8.0\n\n### Use Composer\n\nAdd the lib to your composer.json, run `composer require almaviacx/captchetatbundle` to refresh dependencies.\n\n### Register the bundle\n\nThen inject the bundle in the `config\\bundles.php` of your application.\n\n```php\n    return [\n        // ...\n        AlmaviaCX\\Bundle\\CaptchEtatBundle\\AlmaviaCXCaptchEtatBundle::class =\u003e [ 'all'=\u003e true ],\n    ];\n```\n\n### Add routes\n\nMake sure you add this route to your routing:\n\n```yaml\n# config/routes.yaml\n\ncaptchetat_routes:\n    resource: '@AlmaviaCXCaptchEtatBundle/Resources/config/routes.yaml'\n```\n\n### Accessibility\n\nFor accessibility, you might want to add the following script to your JS\n\n```javascript\nimport CaptchaEtat from '../public/bundles/almaviacxcaptchetat/js/captchetat-widget'\nCaptchaEtat.init()\n```\n\n## Configuration\n\nConfiguration can be done throught the following environment variables\n\n```\nCAPTCHETAT_API_URL=\"https://sandbox-api.piste.gouv.fr\"\nCAPTCHETAT_OAUTH_URL=\"https://sandbox-oauth.piste.gouv.fr\"\nCAPTCHETAT_OAUTH_CLIENT_ID=~\nCAPTCHETAT_OAUTH_CLIENT_SECRET=~\nCAPTCHETAT_TIMEOUT=\"2.5\"\n```\n\nDepending on if you use \"sandbox\" (default) or \"production\" environment, you might want to change the urls to :\n```\nCAPTCHETAT_API_URL=\"https://api.piste.gouv.fr\"\nCAPTCHETAT_OAUTH_URL=\"https://oauth.piste.gouv.fr\"\n```\n\n## Add captcha to your form \n\n```injectablephp\n$builder-\u003eadd(\n    'captcha', CaptchEtatType::class, \n    [\n        'label' =\u003e 'customform.show.captcha',\n    ]\n);\n```\n\n## Formbuilder forms\nYou can autommaticaly add the captcha to formbuilder forms by activating the following service decorator :\n\n```yaml\nAlmaviaCX\\Bundle\\CaptchEtat\\FormBuilder\\FieldType\\Field\\Mapper\\ButtonFieldMapperDecorator:\n    decorates: Ibexa\\FormBuilder\\FieldType\\Field\\Mapper\\ButtonFieldMapper\n    arguments:\n        $buttonFieldMapper: '@.inner'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovactive%2Falmaviacxcaptchetatbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovactive%2Falmaviacxcaptchetatbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovactive%2Falmaviacxcaptchetatbundle/lists"}