diff --git a/README.md b/README.md index 7832f77..40ae3d2 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,9 @@ DEEPSEEK_API_KEY="your_api_key" ### Basic Usage ```php -use DeepseekClient; +use DeepSeekClient; -$deepseek = app(DeepseekClient::class); +$deepseek = app(DeepSeekClient::class); $response = $deepseek->query('Hello deepseek, I am Laravel Framework , how are you Today ^_^ ?')->run(); print_r("deepseek API response : " . $response); ``` @@ -50,9 +50,9 @@ print_r("deepseek API response : " . $response); ### Advanced Usage ```php -use DeepseekClient; +use DeepSeekClient; -$deepseek = app(DeepseekClient::class); +$deepseek = app(DeepSeekClient::class); // Another way, with customization $response = $deepseek @@ -77,7 +77,7 @@ Thanks to these wonderful people for contributing to this project! 💖 - Omar AlAlwi + Omar AlAlwi
Omar AlAlwi
@@ -86,7 +86,7 @@ Thanks to these wonderful people for contributing to this project! 💖 - Asim Al-Wasai + Asim Al-Wasai
Assem Alwaseai
@@ -94,6 +94,17 @@ Thanks to these wonderful people for contributing to this project! 💖 💻 Contributor + + + + Faisal +
+ Faisal +
+
+ 💻 Contributor + + @@ -103,6 +114,27 @@ Want to contribute? Check out the [contributing guidelines](./CONTRIBUTING.md) a Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. +--- +
+ +# 🐘✨ **DeepSeek PHP Community** ✨🐘 + +Click the button bellow or [join here](https://t.me/deepseek_php_community) to be part of our growing community! + +[![Join Telegram](https://img.shields.io/badge/Join-Telegram-blue?style=for-the-badge&logo=telegram)](https://t.me/deepseek_php_community) + + +### **Channel Structure** 🏗️ +- 🗨️ **General** - Daily chatter +- 💡 **Ideas & Suggestions** - Shape the community's future +- 📢 **Announcements & News** - Official updates & news +- 🚀 **Releases & Updates** - Version tracking & migration support +- 🐞 **Issues & Bug Reports** - Collective problem-solving +- 🤝 **Pull Requests** - Code collaboration & reviews + +
+ +--- ### Security If you discover any security-related issues, please email [omaralwi2010@gmail.com](mailto:omaralwi2010@gmail.com) instead of using the issue tracker. diff --git a/composer.json b/composer.json index 959ef88..85c7ad9 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/deepseek-php/deepseek-laravel", "license": "MIT", "type": "library", - "version": "1.0.2", + "version": "2.0.2", "authors": [ { "name": "deepseek-php", @@ -38,7 +38,7 @@ "require": { "php": "^8.1.0", "deepseek-php/deepseek-php-client": "^2.0", - "illuminate/support": "^9.0|^10.0|^11.0", + "illuminate/support": "^9.0|^10.0|^11.0|^12.0", "nyholm/psr7": "^1.8", "symfony/http-client": "^7.2" }, diff --git a/src/DeepseekLaravelServiceProvider.php b/src/DeepseekLaravelServiceProvider.php index 9fc2a3c..e67a921 100644 --- a/src/DeepseekLaravelServiceProvider.php +++ b/src/DeepseekLaravelServiceProvider.php @@ -2,7 +2,7 @@ namespace DeepSeek\DeepseekLaravel; -use DeepSeek\DeepseekClient; +use DeepSeek\DeepSeekClient; use Illuminate\Support\ServiceProvider; use DeepSeek\DeepseekLaravel\Exceptions\ApiKeyIsMissing; @@ -25,7 +25,7 @@ public function register() { $this->mergeConfigFrom(__DIR__.'/../config/deepseek.php', 'deepseek'); - $this->app->singleton('DeepseekClient', function () { + $this->app->singleton(DeepSeekClient::class, function () { $apiKey = config('deepseek.api_key'); $baseUrl = config('deepseek.base_url'); $timeout = config('deepseek.timeout'); @@ -34,7 +34,7 @@ public function register() throw ApiKeyIsMissing::create(); } - return DeepseekClient::build($apiKey, $baseUrl, $timeout); + return DeepSeekClient::build($apiKey, $baseUrl, $timeout); }); } } diff --git a/tests/Feature/DeepseekLaravelTest.php b/tests/Feature/DeepseekLaravelTest.php index 874a454..d815770 100644 --- a/tests/Feature/DeepseekLaravelTest.php +++ b/tests/Feature/DeepseekLaravelTest.php @@ -2,7 +2,7 @@ namespace Feature; -use DeepseekClient; +use DeepSeekClient; use DeepSeek\Enums\Configs\DefaultConfigs; use Illuminate\Support\Facades\Config; use Orchestra\Testbench\TestCase;