{"id":34802101,"url":"https://github.com/magedin/econocargo-php","last_synced_at":"2026-04-22T11:07:10.825Z","repository":{"id":62521903,"uuid":"307752529","full_name":"magedin/econocargo-php","owner":"magedin","description":"This is the official SDK (Software Development Kit) for econoCARGO API. This SDK is intended to help with PHP systems and econoCARGO API.","archived":false,"fork":false,"pushed_at":"2020-10-27T23:54:55.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-19T05:02:52.728Z","etag":null,"topics":["composer","development-kit","econocargo-api","econocargo-php","frete","integration","php","php7","sdk","sdk-php","shipping","shipping-api","shipping-rates"],"latest_commit_sha":null,"homepage":"","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/magedin.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":"2020-10-27T15:55:22.000Z","updated_at":"2022-06-22T17:05:46.000Z","dependencies_parsed_at":"2022-11-02T15:31:51.115Z","dependency_job_id":null,"html_url":"https://github.com/magedin/econocargo-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magedin/econocargo-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magedin%2Feconocargo-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magedin%2Feconocargo-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magedin%2Feconocargo-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magedin%2Feconocargo-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magedin","download_url":"https://codeload.github.com/magedin/econocargo-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magedin%2Feconocargo-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32132981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["composer","development-kit","econocargo-api","econocargo-php","frete","integration","php","php7","sdk","sdk-php","shipping","shipping-api","shipping-rates"],"created_at":"2025-12-25T11:40:23.238Z","updated_at":"2026-04-22T11:07:10.819Z","avatar_url":"https://github.com/magedin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# econoCARGO PHP SDK\n\n[![Build Status](https://travis-ci.com/magedin/econocargo-php.svg?branch=main)](https://travis-ci.com/magedin/econocargo-php)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/bdeae8b97e744a6aa09b8faf7d7b24dd)](https://www.codacy.com/gh/magedin/econocargo-php/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=magedin/econocargo-php\u0026amp;utm_campaign=Badge_Grade)\n\n### About\nThis is the official SDK (Software Development Kit) for econoCARGO API. This SDK is intended to help with PHP systems and econoCARGO API.\n\n### Installing\n\n##### Installing with composer\n\nTo install using composer you'll need to have composer installed on your computer so you will be able to install this SDK into your project easily.\n\nOnce you have composer installed you just need to require this SDK:\n\n```bash\n\u003e composer require magedin/econocargo-php\n```\n\n### Usage\n\nTo start using this SDK into your PHP system is really simple. Take a look in the example right below on how it's really easy to use:\n\n```php\n\u003c?php\n\nuse EconoCargo\\ApiFactory;\nuse EconoCargo\\Options\\Request\\QuoteResponseType;\n\n/**\n * Require composer autoload file.\n */\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\ntry {\n    $api = ApiFactory::create();\n\n    /** Activating testing mode (API Sandbox). */\n    $api-\u003econfig()-\u003eservice()-\u003eisTesting(true);\n    $quote = $api-\u003eshipping()-\u003equote();\n    $quote-\u003esetCompanyCNPJ('05663266000219')\n        -\u003esetOrderNumber('123456')\n        -\u003esetDestinyId('9836')\n        -\u003esetDestinyUFName('SP')\n        -\u003esetDestinyIBGECode(0)\n        -\u003esetDestinyPostcode('04100-000')\n        -\u003esetSegmentId(5)\n        -\u003esetDestinyCNPJ(\"12345678901234\")\n        -\u003esetDestinyCPF(\"01234567890\")\n        -\u003esetDimensionsTotalValue(0.9)\n        -\u003esetWeightTotalValue(150)\n        -\u003esetInvoiceTotalValue(1500)\n        -\u003esetCheaperQuote(true)\n        -\u003esetResponseQuoteType(QuoteResponseType::TYPE_ALL)\n    ;\n\n    $result = $quote-\u003eexecute();\n\n    $shippingServices = $result-\u003egetShippingServices();\n} catch (\\Exception $e) {\n    echo \"Some error has happened.\";\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagedin%2Feconocargo-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagedin%2Feconocargo-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagedin%2Feconocargo-php/lists"}