Skip to content

Commit 1503662

Browse files
committed
docs(dotcms-laravel): Add local SDK development setup instructions to README.md
1 parent 49e2f15 commit 1503662

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

examples/dotcms-laravel/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,27 @@ DOTCMS_API_TOKEN=your-api-key-here
8080

8181
These environment variables define the connection to your DotCMS instance, allowing the SDK to authenticate and make API calls.
8282

83+
### Using Local SDK Development Setup
84+
85+
If you want to test the Laravel example with a local version of the PHP SDK (for development or testing new changes), you can use the `composer.dev.json` configuration:
86+
87+
1. First, ensure you're in the Laravel example directory:
88+
```bash
89+
cd examples/dotcms-laravel
90+
```
91+
92+
2. If you have previously run `composer install`, remove the vendor directory:
93+
```bash
94+
rm -rf vendor
95+
```
96+
97+
3. Install dependencies using the development configuration:
98+
```bash
99+
COMPOSER=composer.dev.json composer install
100+
```
101+
102+
This will use the local SDK from the parent directory instead of the published package version.
103+
83104
## Configuration
84105

85106
All the configuration described below is already implemented in this example project. The following sections explain the key components and how they work together to integrate DotCMS with Laravel.

0 commit comments

Comments
 (0)