crowdvalley/crowdentials-api-wrapper
PHP wrapper for the CrowdValley (Crowdentials) API, simplifying authentication and common requests so Laravel/PHP apps can integrate CrowdValley services with a cleaner, reusable client.
crowdvalley/crowdentials-api-wrapper is a PHP/Laravel package designed to abstract interactions with the Crowdentials API (a service for identity verification, KYC, or fraud prevention). This aligns well with applications requiring authentication, compliance, or user identity validation (e.g., fintech, SaaS with regulated users, or marketplaces).VerificationFailed, KycApproved), enabling reactive workflows (e.g., triggering email notifications or blocking users).HttpException or custom exceptions). Review if it integrates with Laravel’s debugging tools (e.g., app/Exceptions/Handler).user_data to a custom User model)?config/services.php with encryption)?AppServiceProvider).config/crowdentials.php for API keys).Crowdentials::verifyUser()) for clean syntax.composer require crowdvalley/crowdentials-api-wrapper
Publish config:
php artisan vendor:publish --provider="Crowdvalley\Crowdentials\CrowdentialsServiceProvider"
.env:
CROWDENTIALS_API_KEY=your_key
CROWDENTIALS_API_SECRET=your_secret
config/crowdentials.php.AppServiceProvider:
$this->app->bind('crowdentials', function () {
return new CustomCrowdentialsClient();
});
use Crowdvalley\Crowdentials\Facades\Crowdentials;
$result = Crowdentials::verifyUser($userData);
curl, json, and openssl extensions are enabled (common for HTTP clients).User::created event.Log facade)."scripts": {
"test:crowdentials": "php artisan test --filter=CrowdentialsTest"
}
try {
$result = Crowdentials::verifyUser($data);
} catch (\Exception $e) {
\Log::error('Crowdentials API Error', [
'request' => $data,
'error' => $e->getMessage(),
'response' => $e->getResponse()?->getContent()
]);
}
429 Too Many Requests).user_id, verification_status).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Crowdentials API downtime | User onboarding blocked | Fallback to manual review or queue delayed jobs. |
| API key revoked | All requests fail | Rotate keys via CI/CD pipeline. |
| Rate limiting exceeded | Slow responses or 429 errors | Implement retry logic with jitter. |
| Malformed API response | Data corruption | Validate responses with Laravel’s Validator. |
| Wrapper bug (e.g., memory leak) | Server crashes | Monitor with Laravel Telescope or Sentry. |
How can I help you explore Laravel packages today?