Download the PHP package ankapix/logo-objects-php without Composer

On this page you can find all versions of the php package ankapix/logo-objects-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package logo-objects-php

logo-objects-php

Logo Objects REST Service (Tiger / GO / Wings) için tipli, bağımlılıksız bir PHP istemci kütüphanesi. Logo'nun REST servisindeki 156 nesnenin tamamı için endpoint başına ayrı, tip güvenli bir client ile CRUD ve nesneye özel tüm işlemleri sağlar.

Kurulum

GitLab deposundan kurmak için projenizin composer.json dosyasına:

Composer kullanmıyorsanız depo kökündeki autoload.php dosyasını dahil edebilirsiniz.

Hızlı Başlangıç

.env kullanıyorsanız LogoClient::fromEnv() ile de oluşturabilirsiniz (bkz. .env.example).

Mimari

Her endpoint client'ı BaseApiClient'tan türer ve aynı ortak CRUD metotlarını paylaşır:

İşlem Metot HTTP
Listeleme ->getAll($options) GET /endpoint
Tek kayıt ->getById($id, $options) GET /endpoint/{id}
Arama (kriter) ->search($criteria) GET /endpoint?q=...
Sayım ->getCount() GET /endpoint?count=true
Ekleme ->create($data) POST /endpoint
Güncelleme (tam) ->update($id, $data) PUT /endpoint/{id}
Güncelleme (kısmi) ->patch($id, $data) PATCH /endpoint/{id}
Silme ->delete($id) DELETE /endpoint/{id}

Bunlara ek olarak her endpoint, Logo servisinin sunduğu nesneye özel işlemleri (XML içe/dışa aktarım, kampanya/koşul uygulama, satır işlemleri, seri/lot vb.) ayrı metotlar olarak içerir.

Sorgu seçenekleri

getAll ve getById Logo'nun desteklediği parametreleri alır: limit, offset, fields (dizi), sort, q, expand, expandLevel, withCount, count.

Tipli yanıtlar (hydrate)

getById/create/update/patch/delete ilgili nesne sınıfını, getAll/search ise items alanı nesne sınıflarıyla dolu bir ApiResponse döndürür. Diziye ihtiyaç duyarsanız ->toArray() kullanın:

Kimlik Doğrulama

İstemci ilk istekte otomatik olarak POST {baseUrl}/token çağırır:

Hazır bir access token ile çalışmak için yapılandırmaya 'apiKey' => '...' verebilirsiniz.

Hata Yönetimi

Başarısız her istek LogoObjects\Exception\LogoApiError türevi bir istisna fırlatır:

Sınıf Ne zaman Ek bilgi
ValidationError 400 + doğrulama hataları getValidationErrors(), getModelState()
AuthenticationError 401 / token alınamadı —
RateLimitError 429 getRetryAfter()
NetworkError cURL/bağlantı hatası —
ApiException diğer tüm HTTP kodları —

Hepsinde getStatusCode() ve getResponse() (ham ya da çözülmüş sunucu yanıtı) bulunur.

Sunucunun gerekçesi doğrudan mesaja işlenir; Logo'nun Message / ModelState biçimi (ASP.NET) ile eski message / validationErrors biçimi desteklenir:

Mesaja en fazla 10 madde yazılır, fazlası ... ve N tane daha ile kısaltılır; liste her zaman getValidationErrors() ile eksiksiz alınabilir.

LOGO_DEBUG=1 ortam değişkeni ayarlıysa istek ve ham yanıt gövdeleri STDERR'e yazılır (stdout kirletilmez).

Örnekler

examples/ klasörü çalıştırılabilir örnekler içerir (Composer olmadan da çalışır).

Gereksinimler

Lisans

MIT. Ayrıntılar için LICENSE dosyasına bakın. © 2026 Yasin Köse / Ankapix.


All versions of logo-objects-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ankapix/logo-objects-php contains the following files

Loading the files please wait ...