{"id":15287410,"url":"https://github.com/combodo/itopclientbundle","last_synced_at":"2025-10-13T08:32:22.115Z","repository":{"id":38110968,"uuid":"148632392","full_name":"Combodo/iTopClientBundle","owner":"Combodo","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-18T02:20:29.000Z","size":212,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-12T08:39:22.964Z","etag":null,"topics":["itop-hub","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Combodo.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":"2018-09-13T12:10:57.000Z","updated_at":"2022-10-14T14:47:41.000Z","dependencies_parsed_at":"2025-02-12T08:38:27.373Z","dependency_job_id":"287d6498-f312-4bbc-9a2e-7b13abe5779f","html_url":"https://github.com/Combodo/iTopClientBundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2FiTopClientBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2FiTopClientBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2FiTopClientBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2FiTopClientBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Combodo","download_url":"https://codeload.github.com/Combodo/iTopClientBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247425595,"owners_count":20936978,"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":["itop-hub","symfony-bundle"],"created_at":"2024-09-30T15:28:05.448Z","updated_at":"2025-10-13T08:32:17.069Z","avatar_url":"https://github.com/Combodo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iTopClientBundle\niTop rest client bundle for symfony\n\nThis bundle help you consume iTop rest webservices\n\n\nInstallation\n============\n\n### Step 1: Download the Bundle\n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n\n```console\n$ composer require combodo/itop-client-bundle\n```\n\nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n\n### Step 2: configure itop serveur \n```yaml\n# app/config/config.yml\ncombodo_itop_client:\n    servers:\n        itop_server_foo:\n            base_url:  \"%it_combodo.base_url%\"\n            auth_user: \"%it_combodo.auth_user%\"\n            auth_pwd:  \"%it_combodo.auth_pwd%\"\n            extra_headers: \"%it_combodo.extra_headers%\"\n```\n\nThis bundle will create a service named `itop_client.rest_client.itop_server_foo` that you can then uses in your code.\n\n\n### Step 3: Start using it\n\neach operation follow the structure available in otop documentation:\nfollow this struc: https://www.itophub.io/wiki/page?id=latest%3Aadvancedtopics%3Arest_json#operationcore_create\n\n\nyou can use the service container or uses service injection by adding a `Combodo\\ItopClientBundle\\RestClient\\RestClient $foo` in your service constructor.\n```php\nuse Combodo\\ItopClientBundle\\RestClient\\RequestOperation\\Core\\RequestOperationCoreCreate;\nuse Combodo\\ItopClientBundle\\RestClient\\RestClient;\n\nclass Foo\n{\n    /**\n     * @var RestClient\n     */\n    private $client;\n    public function __construct(RestClient $client) \n    {    \n        $this-\u003eclient = $client;\n    }\n\n    public function bar()\n    {\n        $operation = new RequestOperationCoreCreate(\n            'Class',\n            'id',\n            'my comment',\n            [\n                'title'             =\u003e 'foo',\n                'description'       =\u003e 'bar',\n                'caller_email'      =\u003e 'boris.vian@example.com',\n            ]\n        );\n        \n        $this-\u003eclient-\u003eexecuteOperation($operation);\n    }    \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombodo%2Fitopclientbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcombodo%2Fitopclientbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombodo%2Fitopclientbundle/lists"}