{"id":15782348,"url":"https://github.com/maillotf/ardaccess-bridge-bundle","last_synced_at":"2026-04-28T20:04:58.375Z","repository":{"id":80828973,"uuid":"298520242","full_name":"maillotf/ardaccess-bridge-bundle","owner":"maillotf","description":"Symfony bundle for ARD Access REST client which is base on username,password authentication","archived":false,"fork":false,"pushed_at":"2020-12-14T13:19:08.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T19:51:48.940Z","etag":null,"topics":["access","ard","php","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maillotf.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}},"created_at":"2020-09-25T08:55:57.000Z","updated_at":"2020-12-14T13:19:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc533264-546c-4667-a69d-f8a591d012ca","html_url":"https://github.com/maillotf/ardaccess-bridge-bundle","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.15000000000000002","last_synced_commit":"aa6c28e8e48afd3753efdb96c1955d93c924e505"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maillotf%2Fardaccess-bridge-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maillotf%2Fardaccess-bridge-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maillotf%2Fardaccess-bridge-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maillotf%2Fardaccess-bridge-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maillotf","download_url":"https://codeload.github.com/maillotf/ardaccess-bridge-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246499030,"owners_count":20787437,"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":["access","ard","php","symfony"],"created_at":"2024-10-04T19:06:04.427Z","updated_at":"2026-04-28T20:04:58.300Z","avatar_url":"https://github.com/maillotf.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ardaccess-bridge-bundle\n\n[![Software license][ico-license]](LICENSE)\n[![Latest stable][ico-version-stable]][link-packagist]\n![Packagist PHP Version Support][ico-php-version]\n\nSymfony bundle for ARD Access REST client which is base on username,password authentication\n\n## Documentation\n- [Table of contents](https://github.com/maillotf/ardaccess-bridge-bundle/blob/master/docs/README.md)\n\n## Required configuration\n\n### Modify framework.yaml\n```yaml\nardaccess:\n    authentication:\n        protocol: \"http\"\n        host: \"127.0.0.1\"\n        port: \"80\"\n        username: \"USERNAME\"\n        password: \"PASSWORD\"\n```\n\n### Modify services.yaml\n```yaml\nservices:\n    MaillotF\\Ardaccess\\ArdaccessBridgeBundle\\Service\\ArdaccessService: '@ardaccess.service'\n```\n\n## Package instalation with composer\n\n```console\n$ composer require maillotf/ardaccess-bridge-bundle\n```\n\n## Use in controller:\n\n```php\n\u003c?php\n//...\nuse MaillotF\\Ardaccess\\ArdaccessBridgeBundle\\Service\\ArdaccessService;\n\nclass exampleController extends AbstractController\n{\n\t/**\n\t * Example\n\t * \n\t * @Route(\"example\", name=\"example\", methods={\"GET\"})\n\t * \n\t */\n\tpublic function test(ArdaccessService $aas)\n\t{\n\t\t//List of the carriers\n\t\t$carriersList = $aas-\u003ecarrier-\u003eListCarriers();\n\t\t\n\t\t//Update a carrier\n\t\t$apiAttributes = $aas-\u003ecreator\n\t\t\t\t-\u003eaddAttribute('uid', 6078)\n\t\t\t\t-\u003eaddAttribute('rid', 794)\n\t\t\t\t-\u003eaddAttribute('firstname', 'Jean')\n\t\t\t\t-\u003eaddAttribute('lastname', 'Dupont')\n\t\t\t\t-\u003eaddAttribute('usergroup', '171,233')\n\t\t\t\t-\u003eaddAttribute('begindate', 946681200)\n\t\t\t\t-\u003eaddAttribute('enddate', 1627602000)\n\t\t\t\t-\u003eaddAttribute('country', 'France')\n\t\t\t\t-\u003egetAttributes();\n\t\t$attributes = $aas-\u003ecarrier-\u003eCarrier(null, 'u', $apiAttributes);\n\n\t\t//Search with criterion\n\t\t$criterions = $aas-\u003ecreator\n\t\t\t\t\t-\u003enewCriterion('date', '\u003e', 946681200)\n\t\t\t\t\t\t-\u003eaddSubCriterion('example', '=', 'value')\n\t\t\t\t\t-\u003eaddCriterion()\n\t\t\t\t\t-\u003enewCriterion('...', '=', '...')\n\t\t\t\t\t-\u003eaddCriterion()\n\t\t\t\t\t-\u003egetCriterionsArray()\n\t\t\t\t\t;\n\t\t$result = $aas-\u003esupervision-\u003eListEvents(null, $criterions);\n\n\t\t//Handback a smartobject\n\t\t$smartobjectId = 2;\n\t\t$success = $aas-\u003egetSmartObjectHelper()-\u003ehandbackSmartObject($smartObjectId);\n\t\tif ($success === true)\n\t\t\treturn ($this-\u003ejson('OK'));\n\t\treturn ($this-\u003ejson('Not Found', Response::HTTP_BAD_REQUEST));\n\t}\n\n}\n```\n\n[ico-license]: https://img.shields.io/github/license/maillotf/ardaccess-bridge-bundle.svg\n[ico-version-stable]: https://img.shields.io/packagist/v/maillotf/ardaccess-bridge-bundle\n[ico-php-version]: https://img.shields.io/packagist/php-v/maillotf/ardaccess-bridge-bundle\n\n[link-packagist]: https://packagist.org/packages/maillotf/ardaccess-bridge-bundle","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaillotf%2Fardaccess-bridge-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaillotf%2Fardaccess-bridge-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaillotf%2Fardaccess-bridge-bundle/lists"}