{"id":18510058,"url":"https://github.com/gitana/cloudcms-php-driver","last_synced_at":"2025-10-31T19:30:24.000Z","repository":{"id":56954122,"uuid":"167585827","full_name":"gitana/cloudcms-php-driver","owner":"gitana","description":"Cloud CMS PHP Driver","archived":false,"fork":false,"pushed_at":"2025-01-23T02:46:18.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-23T03:27:17.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitana.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitana.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}},"created_at":"2019-01-25T17:25:24.000Z","updated_at":"2025-01-23T02:46:22.000Z","dependencies_parsed_at":"2022-08-21T08:50:19.340Z","dependency_job_id":null,"html_url":"https://github.com/gitana/cloudcms-php-driver","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-php-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-php-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-php-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-php-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitana","download_url":"https://codeload.github.com/gitana/cloudcms-php-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239225764,"owners_count":19603158,"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-06T15:20:34.628Z","updated_at":"2025-10-31T19:30:23.963Z","avatar_url":"https://github.com/gitana.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud CMS PHP Driver\n\nThe [Cloud CMS](https://gitana.io) PHP driver is a client library used to facilitate connections to the Cloud CMS API. The driver handles OAuth authentication and token management, HTTPS calls, and provides convenient methods and classes with which to perform content operations. It works against Cloud CMS instances on our SaaS platform as well as on-premise installations.\n\n## Installation\n\nTo install, run:\n\n```\ncomposer require cloudcms/cloudcms\n```\n\n## Examples\n\nBelow are some examples of how you might use this driver:\n\n```php\n\nuse CloudCMS\\CloudCMS;\n\n// Load configuration from gitana.json file\n$config_string = file_get_contents(\"gitana.json\");\n$config = json_decode($config_string, true);\n\n// Connect to CloudCMS\n$client = new CloudCMS();\n$platform = $client-\u003econnect($config);\n\n// List Repositories\n$repositories = $platform-\u003elistRepositories();\n\n// Read Repository\n$repository = $platform-\u003ereadRepository(\"\u003crepositoryId\u003e\");\n\n// List Branches\n$branches = $repository-\u003elistBranches();\n\n// Read Branch\n$branch = $repository-\u003ereadBranch(\"\u003cbranchId\u003e\");\n\n// Read Node\n$node = $branch-\u003ereadNode(\"\u003cnodeId\u003e\");\n\n// Create Node\n$obj = array(\n    \"title\" =\u003e \"Twelfth Night\",\n    \"description\" =\u003e \"An old play\"\n);\n$newNode = $branch-\u003ecreateNode($obj);\n\n// Query Nodes\n$query = array(\n    \"_type\" =\u003e \"store:book\"\n);\n$pagination = array(\n    \"limit\" =\u003e 2\n);\n$queriedNodes = $branch-\u003equeryNodes($query, $pagination);\n\n// Find Nodes\n$find = array(\n    \"search\" =\u003e \"Shakespeare\",\n    \"query\" =\u003e array(\n        \"_type\" =\u003e \"store:book\"\n    )\n);\n$foundNodes = $branch-\u003efindNodes($find);\n```\n\n## Tests\n\nTo run the tests for this driver, ensure that you have a `gitana.json` file in the driver directory, then run:\n\n```\ncomposer test\n```\n\n## Resources\n\n- Cloud CMS: https://gitana.io\n- Github: http://github.com/gitana/cloudcms-php-driver\n- PHP Driver Download: https://packagist.org/packages/cloudcms/cloudcms\n- Cloud CMS Documentation: https://gitana.io/documentation.html\n- Developers Guide: https://gitana.io/developers.html\n\n## Support\n\nFor information or questions about the PHP Driver, please contact Cloud CMS\nat [support@cloudcms.com](mailto:support@cloudcms.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fcloudcms-php-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitana%2Fcloudcms-php-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fcloudcms-php-driver/lists"}