Download the PHP package ebilet/common without Composer
On this page you can find all versions of the php package ebilet/common. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ebilet/common
More information about ebilet/common
Files in ebilet/common
Download ebilet/common
More information about ebilet/common
Files in ebilet/common
Vendor ebilet
Package common
Short Description E-Bilet Common Package - Merkezi loglama ve ortak işlevler için
License MIT
Package common
Short Description E-Bilet Common Package - Merkezi loglama ve ortak işlevler için
License MIT
Please rate this library. Is it a good library?
Informations about the package common
E-Bilet Common Package
E-Bilet mikroservisleri için merkezi loglama ve ortak işlevler paketi. Laravel 12+ ile uyumlu, config-based architecture ve endpoint-specific logging özellikleri ile.
🚀 Özellikler
- 🔧 Config-Based Architecture: Tüm ayarlar config dosyasından yönetilir
- 🎯 Endpoint-Specific Logging: Belirli endpoint'lerde HTTP loglama
- 📊 Merkezi Loglama Sistemi: RabbitMQ üzerinden log-messages kanalına log gönderimi
- 🌐 HTTP Request/Response Logging: Otomatik HTTP istek/yanıt loglama
- ⚡ Performance Monitoring: Performans metrikleri izleme
- 📈 Business Event Logging: İş olayları loglama
- 🔒 Error Handling: Gelişmiş hata yönetimi
- 🎨 SOLID Principles: Clean code ve yüksek OOP standartları
📦 Kurulum
1. Composer ile Paketi Ekleyin
2. Service Provider'ı Kaydedin
bootstrap/providers.php dosyasında (Laravel 12):
3. Configuration Dosyasını Yayınlayın
4. Environment Variables'ları Ayarlayın
.env dosyasında:
🎯 Kullanım
1. Basit Loglama
2. Endpoint-Specific Middleware Kullanımı
bootstrap/app.php dosyasında (Laravel 12):
3. Config-Based Endpoint Control
.env dosyasında:
4. Queue Manager Kullanımı
5. Enum Kullanımı
⚙️ Konfigürasyon
Config Dosyası: config/ebilet-common.php
📊 Log Message Types
Paket aşağıdaki log mesaj tiplerini destekler:
HTTP Logs
HTTP_REQUEST: HTTP istekleriHTTP_RESPONSE: HTTP yanıtlarıHTTP_ERROR: HTTP hataları
Application Logs
APPLICATION_INFO: Genel bilgi loglarıAPPLICATION_ERROR: Uygulama hatalarıAPPLICATION_WARNING: UyarılarAPPLICATION_DEBUG: Debug logları
Performance Logs
PERFORMANCE_METRIC: Performans metrikleriSLOW_REQUEST: Yavaş isteklerMEMORY_USAGE: Bellek kullanımı
Business Event Logs
BUSINESS_EVENT: İş olaylarıUSER_ACTION: Kullanıcı aksiyonlarıSYSTEM_EVENT: Sistem olayları
Security Logs
SECURITY_ALERT: Güvenlik uyarılarıAUTHENTICATION: Kimlik doğrulamaAUTHORIZATION: Yetkilendirme
Database Logs
DATABASE_QUERY: Veritabanı sorgularıDATABASE_ERROR: Veritabanı hatalarıDATABASE_SLOW_QUERY: Yavaş sorgular
External Service Logs
EXTERNAL_API_CALL: Dış API çağrılarıEXTERNAL_API_ERROR: Dış API hatalarıEXTERNAL_SERVICE_TIMEOUT: Dış servis timeout'ları
🔧 Error Handling
🧪 Test
📋 Gereksinimler
- PHP: ^8.2
- Laravel: ^12.0
- RabbitMQ: 3.8+
- php-amqplib: ^3.0
- monolog: ^3.0
🤝 Katkıda Bulunma
- Fork yapın
- Feature branch oluşturun (
git checkout -b feature/amazing-feature) - Commit yapın (
git commit -m 'Add amazing feature') - Push yapın (
git push origin feature/amazing-feature) - Pull Request oluşturun
📄 Lisans
Bu paket MIT lisansı altında lisanslanmıştır.
🔄 Versiyon Geçmişi
v1.2.3 (Current)
- ServiceClient Class Name Fix:
BaseServiceClient.php→ServiceClient.phpdosya adı düzeltmesi - Autoload Issues: Composer autoload sorunları çözüldü
- Class Not Found Error: ServiceClient sınıfı bulunamama hatası düzeltildi
v1.2.2
- Service Communication System: Tamamen yeni servisler arası iletişim sistemi
- SOLID Architecture: Interface, Factory, Manager pattern'leri ile temiz mimari
- User & Order Facades: Basit facade kullanımı (
User::get(),Order::post()) - Configuration Driven: Config'den service URL'leri okuma
- Error Handling: Kapsamlı error handling ve logging
- Health Check: Service sağlık kontrolü
- Method Chaining:
withToken(),withHeaders(),timeout()chaining
v1.2.1
- ConfigManager ve Config Facade
- Geliştirilmiş config yapısı
- Kapsamlı dokümantasyon
- Güvenlik ayarları
v1.2.0
- Centralized Logger
- Queue Manager
- HTTP Logging Middleware
v1.1.0
- Laravel 12 uyumluluğu
- Config-based architecture
- Endpoint-specific logging
- Improved requirements
v1.0.0
- İlk stable sürüm
- Temel loglama özellikleri
- RabbitMQ entegrasyonu
All versions of common with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
laravel/framework Version ^12.0
php-amqplib/php-amqplib Version ^3.0
monolog/monolog Version ^3.0
laravel/framework Version ^12.0
php-amqplib/php-amqplib Version ^3.0
monolog/monolog Version ^3.0
The package ebilet/common contains the following files
Loading the files please wait ...