这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
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
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,29 +74,27 @@ $project = $client->projects->get('<projectId>');
### Example: Create a project in a specific organization
```php
$project = $client->projects->create(
<organizationId>,
[
'projectTitle' => 'Project title',
'projectRegion' => 'eu-5.platform.sh',
'defaultBranch' => 'main',
]
'<organizationId>',
'eu-5.platform.sh',
'Project title',
'main',
);
```

### Example: Update a project

```php
$projectData = [
'title' => 'title',
'description' => 'description'
];
$response = $client->projects->update(<projectId>, $projectData);
$response = $client->projects->update(
projectId: '<projectId>',
title: 'new Title',
description: 'Description'
);
```

### Example: Delete a project

```php
$client->projects->delete(<projectId>);
$client->projects->delete('<projectId>');
```

---
Expand All @@ -119,7 +117,7 @@ The SDK is built as follows:
* Which generates:
* PHP **Models** (in `src/Model/`)
* PHP **APIs** (in `src/Api/`)
* Higher-level PHP **Tasks** (in `src/Tasks/`)
* Higher-level PHP (Facade) oriented **Tasks** (in `src/Core/Tasks/`)

![Architecture of the SDK](./assets/images/sdk-schema.png)

Expand Down
Binary file modified assets/images/sdk-schema.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading