PHPackages                             chargist/php\_fetcher - 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. chargist/php\_fetcher

ActiveProject[API Development](/categories/api)

chargist/php\_fetcher
=====================

Charg.ist charge provider price fetcher

1.0.0(today)00AGPL-3.0-onlyPHP

Since Jun 19Pushed todayCompare

[ Source](https://github.com/chargist/php_fetcher)[ Packagist](https://packagist.org/packages/chargist/php_fetcher)[ RSS](/packages/chargist-php-fetcher/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Chargist Fetcher ⚡
==================

[](#chargist-fetcher-)

A lightweight, efficient PHP library designed to crawl and aggregate real-time EV (Electric Vehicle) charging station prices from various providers in Turkey. It transforms raw web data into clean, structured PHP objects, making price comparison seamless.

Features
--------

[](#features)

- **Multi-Provider Support:** Scrapes pricing data from top charging networks (Astor, Enyakıt, Otopriz, etc.).
- **Robust Error Handling:** Returns data in a decoupled format, separating successfully fetched prices from failed ones to prevent app crashes.
- **PSR-4 Compliant:** Fully compatible with modern PHP standards and Composer autoloading.
- **Clean Data Structures:** Standardizes disparate website layouts into unified PHP objects.

---

Supported Providers
-------------------

[](#supported-providers)

The library currently supports crawling for the following companies:

CompanyNamespace**Astor Şarj**`Chargist\Fetcher\Company\Astor`**ZES**`Chargist\Fetcher\Company\Zes`**Otopriz**`Chargist\Fetcher\Company\Otopriz`**EnYakit**`Chargist\Fetcher\Company\Enyakit`**PowerŞarj**`Chargist\Fetcher\Company\PowerSarj`**Trugo**`Chargist\Fetcher\Company\Trugo`**Epsis**`Chargist\Fetcher\Company\Epsis`**KŞarj**`Chargist\Fetcher\Company\Ksarj`**D-Charge**`Chargist\Fetcher\Company\DCharge`**Lumicle**`Chargist\Fetcher\Company\Lumicle`**Monokon**`Chargist\Fetcher\Company\Monokon`**Ovolt**`Chargist\Fetcher\Company\Ovolt`**Voltrun**`Chargist\Fetcher\Company\Voltrun`**Wat Mobilite**`Chargist\Fetcher\Company\Watmobilite`---

Installation
------------

[](#installation)

Run the following command in your project directory (ensure your `composer.json` is configured to map the `Chargist` namespace):

```
composer require chargist/php_fetcher
```

Usage Example
-------------

[](#usage-example)

The library utilizes a simple, fluent Fetch engine that executes the crawlers and returns an array destructuring pair: `[$successfulResults, $failedResults]`.

```
