poirot / client-content
Http Client Of Content Posts Module.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
pkg:composer/poirot/client-content
Requires
- poirot/api-client: dev-devel
- poirot/std: dev-devel
Suggests
- poirot/client-tenderbin: Allow Upload Post Related Files Into Object Storage.
This package is auto-updated.
Last update: 2025-09-24 07:24:18 UTC
README
Http Client For Content Posts Module.
Create New Post With Related Content Image File
# Upload File To O-Storage # $uploadedFile = $ClientTenderBin->store( fopen(__DIR__.'/files/infinie.jpeg', 'r') , null , 'Infinite' , [] , time() + (5 * 60) // file available just for 5 minute ); # Insert New Post # $r = $ClientContent->create(new PostContentObject([ 'content_type' => 'general', 'content' => [ "description" => "any text content #with_hash_tag or @mention that will extracted.", 'medias' => [ [ 'hash' => $uploadedFile['bindata']['hash'] , 'content_type' => $uploadedFile['bindata']['content_type'] ], ], ], ]));