{"id":22606601,"url":"https://github.com/benjaminmedia/sitemanager-sdk","last_synced_at":"2025-03-28T22:15:10.822Z","repository":{"id":37514464,"uuid":"144954926","full_name":"BenjaminMedia/sitemanager-sdk","owner":"BenjaminMedia","description":"A PHP SDK for integrating Site Manager","archived":false,"fork":false,"pushed_at":"2023-04-19T19:21:54.000Z","size":101,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-26T14:54:35.084Z","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/BenjaminMedia.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":"2018-08-16T07:47:44.000Z","updated_at":"2020-06-12T08:25:25.000Z","dependencies_parsed_at":"2025-02-03T08:30:30.118Z","dependency_job_id":"87cfd776-423d-4f91-aa2d-a8057c2cab63","html_url":"https://github.com/BenjaminMedia/sitemanager-sdk","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fsitemanager-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fsitemanager-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fsitemanager-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenjaminMedia%2Fsitemanager-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenjaminMedia","download_url":"https://codeload.github.com/BenjaminMedia/sitemanager-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106689,"owners_count":20724401,"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-12-08T14:14:16.639Z","updated_at":"2025-03-28T22:15:10.796Z","avatar_url":"https://github.com/BenjaminMedia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SiteManager SDK [![CircleCI](https://circleci.com/gh/BenjaminMedia/sitemanager-sdk/tree/master.svg?style=svg)](https://circleci.com/gh/BenjaminMedia/sitemanager-sdk/tree/master)\n\n## Installation\n`composer require bonnier/sitemanager-sdk`\n\n## Setup\nMake sure to have the sitemanager host in your `.env`-file, or pass the SiteManager host to the SiteManager constructor:\n```\nSITE_MANAGER_HOST=https://site-manager.test\n```\nor\n```php\n$siteManager = new SiteManager('https://site-manager.test');\n```\n\n## Usage\nFirst of all you'll need to instantiate the SiteManager class:\n```php\nuse Bonnier/SiteManager/SiteManager;\n\n$siteManager = new SiteManager();\n```\nThen you'll be ready to interact with SiteManager\n#### Apps\n```php\n// Retrieve a collection of all apps in SiteManager\n$siteManager-\u003eapp()-\u003egetAll();\n\n// Get a specific app from SiteManager\n$siteManager-\u003eapp()-\u003egetById(1);\n```\n#### Brands\n```php\n// Retrieve a collection of all brands in SiteManager\n$siteManager-\u003ebrand()-\u003egetAll();\n\n// Get a specific brand from SiteManager\n$siteManager-\u003ebrand()-\u003egetById(1);\n```\n#### Categories\n```php\n// Retrieve a collection of all categories in SiteManager\n$siteManager-\u003ecategory()-\u003egetAll();\n\n// Get a specific category from SiteManager\n$siteManager-\u003ecategory()-\u003egetById(1);\n\n// Get a specific category by its Contenthub ID from SiteManager\n$siteManager-\u003ecategory()-\u003egetByContenthubId('abc123');\n\n// Get a collection of categories by a specific brand in from SiteManager\n$siteManager-\u003ecategory()-\u003egetByBrandId(1);\n```\n#### Sites\n```php\n// Retrieve a collection of all the sites in SiteManager\n$siteManager-\u003esite()-\u003egetAll();\n\n// Get a specific site from SiteManager\n$siteManager-\u003esite()-\u003egetById(1);\n```\n#### Tags\n```php\n// Retrieve a collection of all the tags in SiteManager\n$siteManager-\u003etag()-\u003egetAll();\n\n// Get a specific tag from SiteManager\n$siteManager-\u003etag()-\u003egetById(1);\n\n// Get a specific tag by its Contenthub ID from SiteManager\n$siteManager-\u003etag()-\u003egetByContenthubId('abc123');\n\n// Get a collection of tags by a specific brand from SiteManager\n$siteManager-\u003etag()-\u003egetByBrandId(1);\n```\n#### Vocabularies\n```php\n// Retrieve a collection of all the vocabularies in SiteManager\n$siteManager-\u003evocabulary()-\u003egetAll();\n\n// Get a specific vocabulary from SiteManager\n$siteManager-\u003evocabulary()-\u003egetById(1);\n\n// Get a collection of vocabularies by a specific brand from SiteManager\n$siteManager-\u003evocabulary()-\u003egetByBrandId(1)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminmedia%2Fsitemanager-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjaminmedia%2Fsitemanager-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjaminmedia%2Fsitemanager-sdk/lists"}