Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions .run/Psalm.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Psalm" type="PhpLocalRunConfigurationType" factoryName="PHP Console" path="$PROJECT_DIR$/vendor/bin/psalm">
<method v="2" />
</configuration>
</component>
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ If you are using the SDK without integrations, the following sections of the doc
- [How to connect a Temporal Client to a Temporal Service](https://docs.temporal.io/develop/php/temporal-clients#connect-to-a-dev-cluster)
- [How to start a Workflow Execution](https://docs.temporal.io/develop/php/temporal-clients#start-workflow-execution)

Administrative operator APIs are available through [`Temporal\Client\GRPC\OperatorClient`](https://php.temporal.io/):

```php
use Temporal\Api\Operatorservice\V1\DeleteNamespaceRequest;
use Temporal\Client\GRPC\OperatorClient;

$operatorClient = OperatorClient::create('127.0.0.1:7233');
$response = $operatorClient->DeleteNamespace(
(new DeleteNamespaceRequest())->setNamespace('example-namespace'),
);
```

> [!NOTE]
> Check out [the repository with examples](https://github.com/temporalio/samples-php) of using the PHP SDK.

Expand Down
2 changes: 1 addition & 1 deletion dload.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<actions>
<download software="rr" version="^2025.1.5"/>
<download software="temporal" version="^1.4-fairness@dev"/>
<download software="temporal-tests-server"/>
<download software="temporal-tests-server" version="latest"/>
</actions>
<registry>
<software name="Temporal Tests Server" alias="temporal-tests-server">
Expand Down
10 changes: 0 additions & 10 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -924,10 +924,6 @@
</ArgumentTypeCoercion>
</file>
<file src="src/Internal/Transport/Router/StartWorkflow.php">
<PossiblyFalseArgument>
<code><![CDATA[\json_encode($param)]]></code>
<code><![CDATA[\json_encode($param)]]></code>
</PossiblyFalseArgument>
<UnnecessaryVarAnnotation>
<code><![CDATA[Input]]></code>
</UnnecessaryVarAnnotation>
Expand Down Expand Up @@ -1182,12 +1178,6 @@
</PossiblyNullArgument>
</file>
<file src="src/Worker/Transport/Codec/ProtoCodec.php">
<LessSpecificReturnStatement>
<code><![CDATA[$frame->serializeToString()]]></code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[string]]></code>
</MoreSpecificReturnType>
<PossiblyInvalidArgument>
<code><![CDATA[$e->getCode()]]></code>
<code><![CDATA[$e->getCode()]]></code>
Expand Down
Loading