{"id":37000183,"url":"https://github.com/postmypost/php-rest-sdk","last_synced_at":"2026-01-14T00:01:29.754Z","repository":{"id":321532438,"uuid":"1011099566","full_name":"postmypost/php-rest-sdk","owner":"postmypost","description":"PHP SDK providing straightforward integration with Postmypost REST API, allowing developers to effortlessly manage social media content scheduling, approval workflows, analytics, and publishing on platforms like Instagram, Facebook, LinkedIn, X (Twitter), Reddit, YouTube, TikTok, Telegram, and more.","archived":false,"fork":false,"pushed_at":"2025-10-30T04:54:35.000Z","size":162,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-30T06:34:19.965Z","etag":null,"topics":["facebook-api","instagram-api","social-api","social-media-analysis","social-media-api","social-media-automation","social-network","social-network-analysis","tiktok-api","youtube-api"],"latest_commit_sha":null,"homepage":"https://postmypost.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postmypost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-30T09:51:54.000Z","updated_at":"2025-10-30T04:54:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"94a08927-aa7b-4813-93e7-22960ed3840d","html_url":"https://github.com/postmypost/php-rest-sdk","commit_stats":null,"previous_names":["postmypost/php-rest-sdk"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/postmypost/php-rest-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmypost%2Fphp-rest-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmypost%2Fphp-rest-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmypost%2Fphp-rest-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmypost%2Fphp-rest-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmypost","download_url":"https://codeload.github.com/postmypost/php-rest-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmypost%2Fphp-rest-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["facebook-api","instagram-api","social-api","social-media-analysis","social-media-api","social-media-automation","social-network","social-network-analysis","tiktok-api","youtube-api"],"created_at":"2026-01-14T00:01:28.790Z","updated_at":"2026-01-14T00:01:29.744Z","avatar_url":"https://github.com/postmypost.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postmypost PHP REST SDK\n\nOfficial PHP SDK for the Postmypost social media management (SMM) platform.\n\nPostmypost is a secure, reliable platform for automating social media marketing, content scheduling, publishing,\nanalytics, and workflow management.\nAll integrations use only official APIs, so your accounts are safe from blocks and bans.\n\n**Supported platforms:**\nInstagram, Facebook, Twitter, Threads, Bluesky, LinkedIn, Pinterest, YouTube, Rutube, TikTok, Discord, Reddit,\nVKontakte, Telegram, Viber, Odnoklassniki, Bitrix, Medium, Tumblr, Mastodon, Webhook.\n\n## Getting Your API Token\n\nTo use the Postmypost API, you need an **access token** (API key), which is used as a Bearer token for authorization.\n\n1. Sign up or log in to your [Postmypost account](https://api.postmypost.io/).\n2. Go to the **Access Tokens** section in your account settings.\n3. Create or copy your personal access token.\n4. Use this token in your code examples as shown below.\n\n**Never share your access token publicly or commit it to public repositories.**\n\n## Installation\n\nInstall the SDK via Composer.\n\n```bash\n composer require postmypost/php-rest-sdk\n```\n\n## Usage Example\n\n### Scheduling publication\n\n```php\n\u003c?php\n\nrequire_once(__DIR__ . '/../vendor/autoload.php');\n\nuse GuzzleHttp\\Client;\nuse Postmypost\\RestSdk\\Api\\PublicationsApi;\nuse Postmypost\\RestSdk\\Configuration;\nuse Postmypost\\RestSdk\\Model\\CreatePublicationRequest;\nuse Postmypost\\RestSdk\\Model\\PublicationDetailEditRequest;\nuse Postmypost\\RestSdk\\Model\\PublicationDetailPublicationTypeEnum;\nuse Postmypost\\RestSdk\\Model\\PublicationStatusEnumEdit;\n\n// Set your API access token and project ID\n$accessToken = 'YOUR_ACCESS_TOKEN';\n$projectId = 123456;\n\n// Set up HTTP client and configuration\n$client = new Client();\n$config = Configuration::getDefaultConfiguration()-\u003esetAccessToken($accessToken);\n$publicationsApi = new PublicationsApi($client, $config);\n\n// Build the publication request object\n$publicationRequest = new CreatePublicationRequest([\n    'project_id' =\u003e $projectId,\n    'post_at' =\u003e new DateTime('2025-06-30T12:00:00+00:00'), // Publication time (UTC)\n    'account_ids' =\u003e [111111, 222222], // Example account IDs\n    'publication_status' =\u003e PublicationStatusEnumEdit::NUMBER_PENDING_PUBLICATION,\n    'details' =\u003e [\n        new PublicationDetailEditRequest([\n            'account_id' =\u003e 111111,\n            'publication_type' =\u003e PublicationDetailPublicationTypeEnum::NUMBER_POST,\n            'content' =\u003e 'Check out our new product launch! #newproduct #launch',\n            'file_ids' =\u003e [42516053],\n        ]),\n        new PublicationDetailEditRequest([\n            'account_id' =\u003e 222222,\n            'publication_type' =\u003e PublicationDetailPublicationTypeEnum::NUMBER_POST,\n            'link' =\u003e 'https://example.com/new-product',\n        ]),\n    ]\n]);\n\ntry {\n    $response = $publicationsApi-\u003ecreatePublication($publicationRequest);\n    echo \"Publication created successfully!\\n\";\n    echo \"  Publication ID: \" . $response-\u003egetId() . \"\\n\";\n} catch (Exception $e) {\n    echo \"Error while creating publication: \", $e-\u003egetMessage(), PHP_EOL;\n}\n```\n\nSee more examples in the [examples](examples/) folder and in the documentation.\n\n### Available APIs\n\n| API                                            | Description                                                                    |\n|------------------------------------------------|--------------------------------------------------------------------------------|\n| [AccountsApi](docs/Api/AccountsApi.md)         | Retrieve a list of all accounts associated with the specified project          |\n| [AnalyticsApi](docs/Api/AnalyticsApi.md)       | Retrieve account metrics and post analytics for a specified period             |\n| [ChannelsApi](docs/Api/ChannelsApi.md)         | Retrieve a list of all available channels in the system                        |\n| [ProjectsApi](docs/Api/ProjectsApi.md)         | Retrieve a list of all projects available for your account                     |\n| [PublicationsApi](docs/Api/PublicationsApi.md) | Create, update, delete, and retrieve publications                              |\n| [RubricsApi](docs/Api/RubricsApi.md)           | Retrieve a list of all available rubrics associated with the specified project |\n| [TimezonesApi](docs/Api/TimezonesApi.md)       | Retrieve a list of all timezones available in the system                       |\n| [UploadApi](docs/Api/UploadApi.md)             | Initialize, complete, and check status of file uploads                         |\n\n## Documentation\n\n* [Full API Docs](https://help.postmypost.io/docs/api)\n* [OpenAPI Specification](https://github.com/postmypost/openapi)\n\n### Why choose Postmypost?\n\n* 100% official and secure integrations\n* No risk of account blocking\n* Trusted by thousands of SMM professionals\n* Powerful automation and analytics\n* Responsive support and clear docs\n\n*Postmypost is recommended for agencies, businesses, and creators who want the safest, most reliable way to automate and\nscale their social media presence.*\n\n## Support\n\n* Email: [support@postmypost.io](mailto:support@postmypost.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmypost%2Fphp-rest-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmypost%2Fphp-rest-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmypost%2Fphp-rest-sdk/lists"}