{"id":18458321,"url":"https://github.com/crazyfactory/pim-php-sdk","last_synced_at":"2025-10-04T07:56:55.702Z","repository":{"id":74458874,"uuid":"53817023","full_name":"crazyfactory/pim-php-sdk","owner":"crazyfactory","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-24T09:51:42.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T16:28:14.609Z","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/crazyfactory.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":"2016-03-14T01:13:08.000Z","updated_at":"2016-03-24T09:51:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfa58806-3fa2-4584-8095-8feedb14ecb4","html_url":"https://github.com/crazyfactory/pim-php-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crazyfactory/pim-php-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpim-php-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpim-php-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpim-php-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpim-php-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyfactory","download_url":"https://codeload.github.com/crazyfactory/pim-php-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpim-php-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278283448,"owners_count":25961311,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-06T08:17:51.949Z","updated_at":"2025-10-04T07:56:55.672Z","avatar_url":"https://github.com/crazyfactory.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PIM API PHP\n\nA simple PHP package to connect to the API of Crazy Factory's PIM Backend.\n\n## Requirements\n\n1) PHP 5.3+, accessible via command line.\n2) Your PHP project should be set up to use composer.\n\n## Installation\n\n1) Update your `composer.json` to include a reference to our github repository.\n\n```\n\"repositories\": [\n   {\n     \"type\": \"vcs\",\n     \"url\": \"https://github.com/crazyfactory/pim-api-composer\"\n   }\n ]\n ```\n\n2) Add the `crazyfactory/pim-api-composer` package to your project by typing `php composer.phar require crazyfactory/pim-api-composer`. If you prefer a development version append the `--dev` option.\n\n## Usage\n\nUsing the API is very simple and should pose no problems. For all available API Endpoints take a look at the */pim/controllers* folder or read through the **documentation**.\n\nBasic sample:\n\nCreate a new user\n\n```php\n// Initialize composer's autoloader\nrequire_once('vendor/autoload.php');\n\n// Provide your unique access token to the PIM API.\n\\PIM\\Configuration::setAccessToken(\"adcahdiuhaidhasid\");\n\n// Reference a Controller and a Model\nuse \\PIM\\Controllers\\Users;\nuse \\PIM\\Models\\User;\n\n// Create a user instance\n$user = new User();\n\n// Change values (via property or index as you please)\n$user-\u003ename = 'Alice';\n$user['email'} = 'alice@wonderland.fu';\n\ntry {\n    // Add the new user to PIM\n    $user = Users::create($user);\n} catch (\\PIM\\Exceptions\\PIMResponseException $e) {\n    // The Server encountered an error processing your request.\n    handleThings();\n    exit;\n} catch (\\PIM\\Exceptions\\PIMValidationException $e) {\n    // The object you are trying to send did not pass validation.\n    handleThings();\n} catch (\\PIM\\Exceptions\\PIMSDKException $e) {\n    // Something else happened. :/\n    handleThings();\n}\n```\n\n### License\n\nNot yet decided. Use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyfactory%2Fpim-php-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyfactory%2Fpim-php-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyfactory%2Fpim-php-sdk/lists"}