How mehmeterdogan/nobetci-eczane-api-php works
This is a lightweight PHP SDK for querying Eczaneler.ORG’s pharmacy REST API. A consuming application creates EczaneClient and calls methods for on-duty pharmacies (nationwide, city, district, or nearby), location lists, account details, whitelist updates, or the premium all-pharmacies listing. Each method prepares endpoint inputs and delegates HTTP work to the client’s shared request routine, which returns decoded responses or maps failures to typed exceptions. The README advertises smart caching, but the sampled client code shows no cache implementation; relationships are limited to behavior visible in that code.
Main entry points: EczaneClient.php cURL request · EczaneApiException.php API exception base · AuthenticationException.php Authentication error · ConnectionException.php Connection error
Components 20
Pharmacy queries
- On-duty listings
src/EczaneClient.php - City listings
src/EczaneClient.php - District listings
src/EczaneClient.php - Nearby search
src/EczaneClient.php - City and district lists
src/EczaneClient.php - All pharmacies
src/EczaneClient.php
Account services
- Account information
src/EczaneClient.php - Whitelist update
src/EczaneClient.php
HTTP and errors
- EczaneClient
src/EczaneClient.php - cURL request
src/EczaneClient.php - HTTP error mapping
src/EczaneClient.php - API exception base
src/Exceptions/EczaneApiException.php - Authentication error
src/Exceptions/AuthenticationException.php - Connection error
src/Exceptions/ConnectionException.php - Forbidden error
src/Exceptions/ForbiddenException.php - Invalid request error
src/Exceptions/InvalidRequestException.php - Not found error
src/Exceptions/NotFoundException.php - Rate limit error
src/Exceptions/RateLimitException.php
Other components
- PHP application
- Eczaneler REST API
Connections 33
- PHP application → EczaneClient: creates
- EczaneClient → On-duty listings: calls
- EczaneClient → City listings: calls
- EczaneClient → District listings: calls
- EczaneClient → Nearby search: calls
- EczaneClient → City and district lists: calls
- EczaneClient → All pharmacies: calls
- EczaneClient → Account information: calls
- EczaneClient → Whitelist update: calls
- On-duty listings → cURL request: delegates
- City listings → cURL request: delegates
- District listings → cURL request: delegates
- Nearby search → cURL request: delegates
- City and district lists → cURL request: delegates
- All pharmacies → cURL request: delegates
- Account information → cURL request: delegates
- Whitelist update → cURL request: delegates
- cURL request → Eczaneler REST API: sends HTTP
- Eczaneler REST API → cURL request: returns JSON
- cURL request → HTTP error mapping: maps failures
- HTTP error mapping → Authentication error: throws 401
- HTTP error mapping → Invalid request error: throws 400
- HTTP error mapping → Forbidden error: throws 403
- HTTP error mapping → Not found error: throws 404
- HTTP error mapping → Rate limit error: throws 429
- HTTP error mapping → API exception base: throws other
- cURL request → Connection error: throws network
- Authentication error → API exception base: extends
- Connection error → API exception base: extends
- Forbidden error → API exception base: extends
- Invalid request error → API exception base: extends
- Not found error → API exception base: extends
- Rate limit error → API exception base: extends