Download the PHP package mesilov/bitrix24-php-sdk without Composer

On this page you can find all versions of the php package mesilov/bitrix24-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bitrix24-php-sdk

Bitrix24 REST API PHP SDK

License Total Downloads Latest Stable Version

A powerful PHP library for the Bitrix24 REST API

Build status

CI\CD status on master
phpstan check
unit-tests status
integration-tests status

Integration tests run in GitHub actions with real Bitrix24 portal

BITRIX24-PHP-SDK ✨FEATURES✨

Support both auth modes:

Domain core events:

API - level features

Performance improvements 🚀

Development principles

Architecture

Abstraction layers

Documentation

Requirements

Installation

Add "mesilov/bitrix24-php-sdk": "2.x" to composer.json of your application. Or clone repo to your project.

Examples

Work with webhook

  1. Go to /examples/webhook folder
  2. Open console and install dependencies

  3. Open Bitrix24 portal: Developer resources → Other → Inbound webhook
  4. Open example file and insert webhook url into $webhookUrl
see example.php file
  1. Call php file in shell

Work with local application

  1. Go to /examples/local-application folder
  2. Open console and install dependencies

  3. Start local development server

  4. Expose local server to public via ngrok and remember temporally public url – https://****.ngrok-free.app

  5. Check public url from ngrok and see x-powered-by header with 200 status-code.

  6. Open Bitrix24 portal: Developer resources → Other → Local application and create new local application:
    • type: server
    • handler path: https://****.ngrok-free.app/index.php
    • Initial installation path: https://****.ngrok-free.app/install.php
    • Menu item text: Test local app
    • scope: crm
  7. Save application parameters in index.php file:
    • Application ID (client_id)BITRIX24_PHP_SDK_APPLICATION_CLIENT_ID
    • Application key (client_secret)BITRIX24_PHP_SDK_APPLICATION_CLIENT_SECRET
    • Assing permitions (scope)BITRIX24_PHP_SDK_APPLICATION_SCOPE
      see index.php file

  1. Save local application in Bitrix24 tab and press «OPEN APPLICATION» button.

Create application for Bitrix24 marketplace

if you want to create application you can use production-ready contracts in namespace Bitrix24\SDK\Application\Contracts:

Steps:

  1. Create own entity of this bounded contexts.
  2. Implement all methods in contract interfaces.
  3. Test own implementation behavior with contract-tests tests/Unit/Application/Contracts/* – examples.

Tests

Tests locate in folder tests and we have two test types. In folder tests create file .env.local and fill environment variables from .env.

PHP Static Analysis Tool – phpstan

Call in command line

PHP Static Analysis Tool – rector

Call in command line for validate

Call in command line for fix codebase

Unit tests

Fast, in-memory tests without a network I\O For run unit tests you must call in command line

Integration tests

Slow tests with full lifecycle with your test Bitrix24 portal via webhook.

❗️Do not run integration tests with production portals

For run integration test you must:

  1. Create new Bitrix24 portal for development tests.
  2. Go to left menu, click «Sitemap».
  3. Find menu item «Developer resources».
  4. Click on menu item «Other».
  5. Click on menu item «Inbound webhook».
  6. Assign all permisions with webhook and click «save» button.
  7. Create file /tests/.env.local with same settings, see comments in /tests/.env file.

  8. call in command line

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub

License

bitrix24-php-sdk is licensed under the MIT License - see the MIT-LICENSE.txt file for details

Authors

Maksim Mesilov - [email protected]

See also the list of contributors which participated in this project.

Sponsors

boosty.to/bitrix24-php-sdk

Need custom Bitrix24 application?

Email to [email protected] for private consultations or dedicated support.


All versions of bitrix24-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version 8.2.* || 8.3.*
ext-json Version *
ext-curl Version *
ext-intl Version *
psr/log Version ^2 || ^3
fig/http-message-util Version ^1
giggsey/libphonenumber-for-php Version ^8
darsyn/ip Version ^4 || ^5
nesbot/carbon Version ^3
moneyphp/money Version ^3 || ^4
mesilov/moneyphp-percentage Version ^0.2
symfony/http-client Version ^6 || ^7
symfony/console Version ^6 || ^7
symfony/dotenv Version ^6 || ^7
symfony/filesystem Version ^6 || ^7
symfony/mime Version ^6 || ^7
symfony/finder Version ^6 || ^7
symfony/http-client-contracts Version ^2 || ^3
symfony/http-foundation Version ^6 || ^7
symfony/event-dispatcher Version ^6 || ^7
symfony/uid Version ^6 || ^7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mesilov/bitrix24-php-sdk contains the following files

Loading the files please wait ....