Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

B24Phpsdk Laravel Package

bitrix24/b24phpsdk

Bitrix24 PHP SDK for working with the Bitrix24 REST API from Laravel or plain PHP. Provides typed clients, authentication helpers, API method wrappers, pagination, and webhook/OAuth support to simplify integrating CRM, tasks, chats, and other Bitrix24 modules.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Expanded Bitrix24 IM/Chat Integration Roadmap:

    • Real-time Collaboration Features: Enables building in-app chat, messaging, and team communication (e.g., internal Slack-like workflows, customer support channels, or partner portals) by abstracting Bitrix24’s IM API (chats, messages, departments, file storage).
    • File Management & Workflows: Supports document collaboration via Disk service (file operations, folder management) for shared workspaces or project attachments.
    • Search & Notifications: Powers context-aware search (users, chats, departments) and notification systems (e.g., unread message alerts, event triggers) via Search and Notify services.
    • User Status & Presence: Facilitates real-time availability tracking (e.g., "online/offline" indicators, idle detection) for team coordination tools.
    • Custom IM Widgets: Extends UI integrations (e.g., embedded chat widgets, sidebars) via Placements service for tailored Bitrix24 IM experiences.
  • Build vs. Buy (Updated):

    • Buy for Bitrix24 IM/Chat core functionality (messages, chats, users, file ops) to avoid reinventing OAuth, pagination, or error handling. Build only for:
      • Highly custom IM payloads (e.g., vendor-specific message formats) via RawAttach::fromArray().
      • Offline/bulk sync (SDK remains REST-focused).
      • SOAP API dependencies (still unsupported).
    • New Opportunity: Use the SDK to embed Bitrix24’s full IM stack (not just CRM) into Laravel apps, reducing reliance on third-party tools like Slack or Microsoft Teams.
  • Use Cases (Expanded):

    • SaaS Platforms: Offer embedded Bitrix24 chat for customer support (e.g., live chat widgets, ticketing integration).
    • Internal Tools: Build team collaboration hubs (e.g., project chats, knowledge-sharing portals) with Laravel as the backend.
    • File Collaboration: Sync Bitrix24’s Disk service with Laravel storage (e.g., auto-backup, versioning, or access controls).
    • Automation & Bots: Trigger actions via im.message.command (e.g., slash commands for workflows like /create-task).
    • Analytics & Insights: Leverage IM\Counters and Notify services to track engagement (e.g., unread messages, notification history).
  • Data Pipeline Strategy:

    • Event-Driven Sync: Use webhooks + SDK for real-time updates (e.g., new messages → Laravel notifications).
    • Bulk Operations: Optimize im.message.add/update with typed Attach builders for high-volume messaging (e.g., newsletters, alerts).
  • Developer Productivity:

    • Fluent APIs: Reduces boilerplate for complex IM operations (e.g., IMServiceBuilder::message()->add()->withText("Hello")->send()).
    • Type Safety: Typed result wrappers (e.g., ChatResult, UserStatusResult) cut debugging time.
    • Dev Tools: b24-dev:result-item-generator automates payload validation against Bitrix24’s OpenAPI spec.

When to Consider This Package

Adopt if:

  • Your Laravel app needs Bitrix24’s IM/Chat API (messages, chats, users, file storage) in addition to CRM features.
  • You require real-time collaboration tools (e.g., team chats, file sharing, presence status) without building from scratch.
  • Your use case involves:
    • Embedded chat widgets (e.g., customer support, partner portals).
    • Document/workflow automation (e.g., syncing Bitrix24 files with Laravel storage).
    • User activity tracking (e.g., unread messages, notification history).
    • Custom IM integrations (e.g., bots, slash commands, or UI placements).
  • You prioritize maintainability over raw flexibility (SDK handles auth, pagination, and edge cases like rate limits).
  • Your team uses Laravel and wants seamless integration (service providers, dependency injection, typed results).

Look elsewhere if:

  • You only need Bitrix24 CRM (contacts, deals, leads) and not IM/Chat features (use prior versions or a lighter SDK).
  • Your integration requires Bitrix24’s SOAP API (SDK is REST-only).
  • You need offline/bulk sync (SDK is optimized for REST, not local caching or batch operations).
  • Bitrix24’s IM API changes frequently, and you lack resources to maintain SDK extensions.
  • You’re using non-PHP stacks (e.g., Node.js, Python) or need a multi-language solution.
  • You require highly custom IM payloads beyond the SDK’s Attach builders (may need raw HTTP clients).

How to Pitch It (Stakeholders)

For Executives: *"This update supercharges our Bitrix24 integration by adding full IM/Chat support—turning our Laravel app into a collaboration powerhouse without hiring extra devs. For example:

  • Embedded Chat: Add Bitrix24’s messaging system to our SaaS in weeks, not months (vs. building from scratch).
  • File Collaboration: Sync documents between Bitrix24’s Disk and our platform for seamless team workflows.
  • Real-Time Alerts: Use notifications and counters to boost engagement (e.g., ‘You have 3 new messages’). The SDK cuts dev time by 70% for IM features while keeping us aligned with Bitrix24’s latest API. It’s a force multiplier for internal tools, customer support, or partner portals—all with no vendor lock-in (MIT license) and active updates (last release: April 2026)."*

For Engineering: *"This release unlocks Bitrix24’s IM/Chat API in Laravel with zero boilerplate:

  • Messages/Chats: Fluent builders for sending, editing, or deleting messages (im.message.add), managing chats (im.chat.add), and handling attachments with typed Attach payloads.
  • File Ops: Full Disk service for uploading/deleting files, sharing records, and folder management—ideal for document workflows.
  • Search & Notifications: Pre-built methods for searching users/chats (im.search.chat.list) and managing notifications (im.notify.send).
  • Dev Superpowers:
    • Type Safety: Results like ChatResult or UserStatusResult reduce runtime errors.
    • Automation: b24-dev:result-item-generator auto-validates payloads against Bitrix24’s API spec.
    • Extensibility: Need a custom IM feature? Override the base client or use RawAttach::fromArray() for unsupported payloads. Tradeoffs: Less control over raw HTTP calls, but faster iteration and fewer bugs. Perfect for:
    • Building embedded chat or team collaboration tools.
    • Syncing Bitrix24 files with Laravel storage.
    • Adding real-time presence/status features. If you’re working on anything IM-related, this SDK saves months of work."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui