---
title: "How to connect the AmoCRM library to your Joomla extension - WebTolk websites development, Joomla Extensions"
description: "The Joomla core way to connect third-party PHP libraries."
url: "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/kak-podklyuchit-biblioteku-amocrm-v-svojo-rasshirenie-dlya-joomla"
date: "2026-06-07T14:37:25+00:00"
language: "en-GB"
---

# How to connect the AmoCRM library to your Joomla extension

WT Amo CRM library - Documentation

**Category:** [Libraries](https://web-tolk.ru/en/dev/biblioteki)

[Project](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library)[Versions](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/versions)[Documentation](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation)[GitHub](https://github.com/WebTolk/WT-Amo-CRM-library-for-Joomla-4)

The Joomla core way to connect third-party PHP libraries.

## Connecting the library to your Joomla extension

```
use Webtolk\Amocrm\Amocrm;

$amocrm = new Amocrm();
$result_amo_crm = $amocrm->getAccountInfo();
```

## For Joomla 3 and Joomla versions before 4.2.7.

For Joomla 3.x and Joomla 4, there is a generally accepted way to connect third-party PHP libraries. Link to [official Joomla documentation](https://docs.joomla.org/Using_own_library_in_your_extensions/en). Starting with Joomla 3.1.2, the Joomla kernel class loader supports PSR-0 autoloading of namespaces. In order for the kernel loader to know about the namespace of the library, you need to use a system plugin that triggers the `onAfterInitialize` event. This plugin is bundled with the WT Amocrm library. It is also used to store amoCRM credentials in Joomla.

## JSON-LD Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@id": "https://web-tolk.ru/en",
                "name": "Home"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@id": "https://web-tolk.ru/en/dev",
                "name": "Joomla extensions"
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@id": "/en/dev/biblioteki",
                "name": "Libraries"
            }
        },
        {
            "@type": "ListItem",
            "position": 4,
            "item": {
                "@id": "/en/dev/biblioteki/wt-amo-crm-library",
                "name": "WT Amo CRM library"
            }
        },
        {
            "@type": "ListItem",
            "position": 5,
            "item": {
                "@id": "/en/dev/biblioteki/wt-amo-crm-library/documentation",
                "name": "Documentation"
            }
        },
        {
            "@type": "ListItem",
            "position": 6,
            "item": {
                "name": "How to connect the AmoCRM library to your Joomla extension"
            }
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Organization",
            "@id": "https://web-tolk.ru/#/schema/Organization/base",
            "name": "WebTolk",
            "url": "https://web-tolk.ru/",
            "logo": {
                "@type": "ImageObject",
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo",
                "url": "images/webtolk-1080p.jpg",
                "contentUrl": "images/webtolk-1080p.jpg",
                "width": 1920,
                "height": 1080
            },
            "image": {
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo"
            },
            "sameAs": [
                "https://github.com/WebTolk",
                "https://github.com/sergeytolkachyov",
                "https://vk.com/web_tolk",
                "https://vk.com/webtolkru",
                "https://tenchat.ru/sergeytolkachyov",
                "https://t.me/sergeytolkachyov",
                "https://t.me/webtolkru"
            ]
        },
        {
            "@type": "WebSite",
            "@id": "https://web-tolk.ru/#/schema/WebSite/base",
            "url": "https://web-tolk.ru/",
            "name": "WebTolk websites development, Joomla Extensions",
            "publisher": {
                "@id": "https://web-tolk.ru/#/schema/Organization/base"
            }
        },
        {
            "@type": "WebPage",
            "@id": "https://web-tolk.ru/#/schema/WebPage/base",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/kak-podklyuchit-biblioteku-amocrm-v-svojo-rasshirenie-dlya-joomla",
            "name": "How to connect the AmoCRM library to your Joomla extension - WebTolk websites development, Joomla Extensions",
            "description": "The Joomla core way to connect third-party PHP libraries.",
            "isPartOf": {
                "@id": "https://web-tolk.ru/#/schema/WebSite/base"
            },
            "about": {
                "@id": "https://web-tolk.ru/#/schema/TechArticle/base"
            },
            "inLanguage": "en-GB",
            "breadcrumb": {
                "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17"
            }
        },
        {
            "@type": "TechArticle",
            "headline": "How to connect the AmoCRM library to your Joomla extension",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/kak-podklyuchit-biblioteku-amocrm-v-svojo-rasshirenie-dlya-joomla",
            "description": "The Joomla core way to connect third-party PHP libraries.",
            "mainEntityOfPage": {
                "@type": "WebPage",
                "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/kak-podklyuchit-biblioteku-amocrm-v-svojo-rasshirenie-dlya-joomla"
            }
        }
    ]
}
```
