bitrix24/b24phpsdk
Official PHP library for the Bitrix24 REST API, with two branches: v1 (stable, PHP 8.2–8.4) and v3 (active development, PHP 8.4+, new REST methods, breaking changes). Handles authentication, API calls, and batch requests.
Pros:
ApiClient → Services/* structure remains compatible with Laravel’s repository/service patterns. The expanded service coverage reduces the need for custom Bitrix24 API wrappers.Services\Landing and Services\Sale scopes improves bulk-operation performance for CRM, e-commerce, and landing-page workflows. This is directly relevant to Laravel queue-driven integrations.PortalDomainUrlChangingEvent with irreversible deny() and PortalDomainChangeRejectedException allows the application to veto portal redirects before credentials change or tokens are sent to the destination. This is important for multi-portal and marketplace-style Laravel applications.Cons:
/rest/ → /rest/api/ endpoint change remains a consideration when migrating from v1. Release 3.7.0 improves v3 maturity but does not remove the v1-to-v3 migration cost.public function register(): void
{
$this->app->singleton(Bitrix24Service::class, function ($app) {
return ServiceBuilderFactory::createServiceBuilderFromToken(
config('bitrix24.token'),
config('bitrix24.portal')
);
});
}
config/bitrix24.php can centralize credentials (token, portal URL, scopes). Environment variables (.env) can override sensitive values.PortalDomainUrlChangingEvent should be wired into Laravel’s event system or a dedicated listener to reject unsafe portal redirects before credential changes occur.ResponseInterface can be translated into Laravel exceptions and logged via Laravel’s log channels.Http facade can be used alongside or around custom wrappers where consistency is needed.PortalDomainUrlChangingEvent can be handled in a Laravel listener to enforce credential-safety policy.PortalDomainUrlChangingEvent if the application manages multiple portals or marketplace flows.ext-json and ext-curl, which are typically enabled in Laravel.PortalDomainUrlChangingEvent if portal redirect controls are needed.composer.json and test updates in staging before production.PortalDomainUrlChangingEvent, multi-portal applications may forward credentials or tokens to an unintended destination.How can I help you explore Laravel packages today?