PHPackages                             depakespedro/grastin-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. depakespedro/grastin-api-php

ActiveLibrary[API Development](/categories/api)

depakespedro/grastin-api-php
============================

integration grastin api

1.1.1(8y ago)1951[2 issues](https://github.com/depakespedro/grastin-api-php/issues)MITPHP

Since Dec 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/depakespedro/grastin-api-php)[ Packagist](https://packagist.org/packages/depakespedro/grastin-api-php)[ RSS](/packages/depakespedro-grastin-api-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

grastin-api-php
===============

[](#grastin-api-php)

Неофициальный PHP-клиент для API службы доставки Грастин

Установка
---------

[](#установка)

Добавить в composer.json

```
  "repositories": {
    "depakespedro/grastin-api-php": {
      "type": "vcs",
      "url": "https://github.com/depakespedro/grastin-api-php.git"
    }
  }

```

Установить пакет:

```
    composer require depakespedro/grastin-api-php

```

Использование
-------------

[](#использование)

### Добавить заказ

[](#добавить-заказ)

```
    $product = new ProductGrastin();
    $product->set_amount('100')
        ->set_article('123')
        ->set_cost('100')
        ->set_name('213');

    $product2 = new ProductGrastin();
    $product2->set_amount('322')
        ->set_article('434')
        ->set_cost('100')
        ->set_name('432');

    $og = new OrderGrastin($isTest = true);
    $og->set_number('Ваш уникальный номер заказа')
        ->set_address('Адрес получателя')
        ->set_comment('Комментарий курьеру')
        ->set_shippingtimefrom('13:00')
        ->set_shippingtimefor('15:00')
        ->set_shippingdate('01022017') // DDMMYYYY
        ->set_buyer('ФИО получателя')
        ->set_summa('100') // Сумма заказ
        ->set_assessedsumma('100') // Оценочная стоимость
        ->set_phone1('89177755684')
        ->set_service('6') // Код услуги, см. `\Depakespedro\Grastin\Enum\ServiceType`
        ->set_takewarehouse('Москва') // Город отгрузки
        ->set_goods([$product,$product2]);

    $grastin = new Grastin('API key');
    $data_responce = $grastin->newordercourier([$og]);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 52.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~62 days

Total

4

Last Release

3239d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4938460e35fab0a1dc4371fe6d31f436adbc09d9c0b39d97e5e19b8cba51f65?d=identicon)[depakespedro](/maintainers/depakespedro)

---

Top Contributors

[![depakespedro](https://avatars.githubusercontent.com/u/16132020?v=4)](https://github.com/depakespedro "depakespedro (11 commits)")[![maxim-oleinik](https://avatars.githubusercontent.com/u/75860?v=4)](https://github.com/maxim-oleinik "maxim-oleinik (10 commits)")

### Embed Badge

![Health badge](/badges/depakespedro-grastin-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/depakespedro-grastin-api-php/health.svg)](https://phpackages.com/packages/depakespedro-grastin-api-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
