Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update readme
  • Loading branch information
jsklan committed Oct 7, 2025
commit 2f28ee694bc8a69c04862f731a59f9f61c141470
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,27 @@ foreach ($items->getPages() as $page) {
}
```

## Legacy SDK

While the new SDK has a lot of improvements, we at Intercom understand that it takes time to upgrade when there are breaking changes.
To make the migration easier, the new SDK also exports the legacy SDK as `Intercom\Legacy\...`. Here's an example of how you can use the
legacy SDK alongside the new SDK inside a single file:

```php
use Intercom\IntercomClient;
use Intercom\Legacy\IntercomClient as LegacyIntercomClient;

$intercom = new IntercomClient();
$legacyClient = new LegacyIntercomClient();
```

We recommend migrating to the new SDK using the following steps:

1. Upgrade the package to `^5.0.1`
2. Search and replace all requires and imports from `Intercom\...` to `Intercom\Legacy\...`

3. Gradually move over to use the new SDK by importing it from the `Intercom\...` import.


## Advanced

Expand Down