{"id":24780409,"url":"https://github.com/webgriffe/amp-magento","last_synced_at":"2025-06-23T04:38:58.342Z","repository":{"id":54529393,"uuid":"190549361","full_name":"webgriffe/amp-magento","owner":"webgriffe","description":"Magento REST Api wrapper to use with Amp PHP framework.","archived":false,"fork":false,"pushed_at":"2025-01-10T17:11:36.000Z","size":174,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T17:42:01.537Z","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/webgriffe.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":"2019-06-06T08:57:58.000Z","updated_at":"2025-01-10T17:11:40.000Z","dependencies_parsed_at":"2024-12-10T14:41:56.310Z","dependency_job_id":null,"html_url":"https://github.com/webgriffe/amp-magento","commit_stats":{"total_commits":122,"total_committers":4,"mean_commits":30.5,"dds":0.5245901639344263,"last_synced_commit":"1edfc379b9494a07c45c8ede25d5573119e41b42"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-magento","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-magento/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-magento/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Famp-magento/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webgriffe","download_url":"https://codeload.github.com/webgriffe/amp-magento/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236165509,"owners_count":19105651,"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":"2025-01-29T10:30:24.242Z","updated_at":"2025-01-29T10:30:25.502Z","avatar_url":"https://github.com/webgriffe.png","language":"PHP","funding_links":[],"categories":["Magento"],"sub_categories":["Tunnel"],"readme":"# AMP Magento Library\n\n[![Build Status](https://travis-ci.org/webgriffe/amp-magento.svg?branch=master)](https://travis-ci.org/webgriffe/amp-magento)\n\nMagento REST Api wrapper to use with [Amp](https://amphp.org/) PHP framework.\n\n## Installation\n\nRequire this package using [Composer](https://getcomposer.org/):\n\n    composer require webgriffe/amp-magento\n     \n## Usage\n\nApiClient is the main class of this library: it contains methods that wrap Magento REST API.\n\n```php\n\u003c?php\n\nuse Amp\\Http\\Client\\HttpClientBuilder;\nuse Webgriffe\\AmpMagento\\ApiClient;\n\nrequire_once __DIR__.'/vendor/autoload.php';\n\n$client = new ApiClient(\n    HttpClientBuilder::buildDefault(),\n    [\n        'baseUrl' =\u003e 'http://magento.base.url',\n        'username' =\u003e 'magento-username',\n        'password' =\u003e 'magento-password'\n    ]\n);\n\n$order = \\Amp\\Promise\\wait($client-\u003egetOrder(1));\nvar_dump($order);\n\n```\n\n## In Memory Magento\n\nThe folder InMemoryMagento contains a fake Magento server and client to be used for automated testing.\nUnit tests in tests/ApiClientTest.php show how to use InMemoryMagento.\n\nContributing\n------------\n\nTo contribute simply fork this repository, do your changes and then propose a pull requests.\nYou should run coding standards check and tests as well:\n\n```bash\nvendor/bin/phpcs --standard=PSR2 src\nvendor/bin/phpunit\n```\n\nLicense\n-------\nThis library is under the MIT license. See the complete license in the LICENSE file.\n\nCredits\n-------\nDeveloped by [Webgriffe®](http://www.webgriffe.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Famp-magento","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebgriffe%2Famp-magento","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Famp-magento/lists"}