{"id":40993844,"url":"https://github.com/okamos/php-ses","last_synced_at":"2026-01-22T08:06:54.972Z","repository":{"id":38109405,"uuid":"75264841","full_name":"okamos/php-ses","owner":"okamos","description":"An Amazon SES api for php. Support signature version 4.","archived":false,"fork":false,"pushed_at":"2023-04-19T19:37:04.000Z","size":88,"stargazers_count":23,"open_issues_count":4,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-17T15:17:17.036Z","etag":null,"topics":["aws","php","ses"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okamos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-01T06:58:33.000Z","updated_at":"2024-10-11T11:29:10.000Z","dependencies_parsed_at":"2022-09-04T01:40:42.609Z","dependency_job_id":null,"html_url":"https://github.com/okamos/php-ses","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/okamos/php-ses","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamos%2Fphp-ses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamos%2Fphp-ses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamos%2Fphp-ses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamos%2Fphp-ses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okamos","download_url":"https://codeload.github.com/okamos/php-ses/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamos%2Fphp-ses/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28659053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws","php","ses"],"created_at":"2026-01-22T08:06:10.310Z","updated_at":"2026-01-22T08:06:54.967Z","avatar_url":"https://github.com/okamos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon Simple Email Service for PHP\n[![license](https://img.shields.io/github/license/okamos/php-ses.svg)]()  \nphp-ses is a PHP library for Amazon's Simple Email Service's REST API [Amazon SES](https://aws.amazon.com/ses/)\n\n## Installation\nInstall via [Composer](https://getcomposer.org/)\n\n```bash\ncomposer require okamos/php-ses\n```\n\n## Getting started\nTo get started you need to require ses.php\n\n```php\n\u003cphp?\nrequire_once('vendor/autoload.php');\n```\n\nThis library need your AWS access key id and aws secret access key.\n\n```php\n$ses = new SimpleEmailService(\n    'AKI...', // your AWS access key id\n    'your_secret...', // your AWS secret access key\n    'us-west-2' // AWS region, default is us-east-1\n);\n\n// if you can't use verification of SSL certificate\n$ses = new SimpleEmailService(\n    'AKI...', // your AWS access key id\n    'your_secret...', // your AWS secret access key\n    'us-west-2' // AWS region, default is us-east-1\n);\n\n// method name's first character is must be lower case\n$identities = $ses-\u003elistIdentities(); // string[]\n```\n\n## Version Guidance\n\n|Version | PHP Version      |\n|--------|------------------|\n|1.x     | \u003e= 5.6, \u003e= 7.0   |\n|7.0.0   | \u003e= 7.2           |\n|^7.3    | \u003e= 7.3, \u003e= 8.0   |\n|^8.0    | \u003e= 8.0           |\n\n## Available API\n* ListIdentities\n* VerifyEmailIdentity\n* DeleteIdentity\n* SendEmail\n* GetSendQuota\n* GetSendStatistics\n* GetIdentityVerificationAttributes\n\n## Usage\n\nListing identities.\n\n```php\n// List all identities your domains.\n$identities = $ses-\u003eListIdentities('Domain');\n// List all identities your email addresses.\n$identities = $ses-\u003eListIdentities('EmailAddress');\n$identities[0]; // your@email.com\n```\n\nVerify Email.\n\n```php\n$ses-\u003everifyEmailIdentity('your-email@example.com'); // return string(RequestId)\n```\n\nDelete an identity.\n\n```php\n$ses-\u003edeleteIdentity('your-email@example.com'); // return string(RequestId)\n```\n\nGet verification token and status.\n\n```php\n$identities = [\n    'your-email@example.com',\n    'your-domain.com'\n];\n$entries = $ses-\u003egetIdentityVerificationAttributes($identities);\n$entries[0]['Email']; // string (email)\n$entries[0]['Token']; // string(token)\n$entries[1]['Status']; // string(Pending | Success | Failed | TemporaryFailure)\n```\n\nGet your AWS account's send quota.\n\n```php\n$sendQuota = $ses-\u003egetSendQuota();\n$sendQuota['Max24HourSend'] // string\n$sendQuota['SentLast24Hours'] // string\n$sendQuota['MaxSendRate'] // string\n```\n\nGet your sending statistics.\n\n```php\n$data = $ses-\u003egetSendStatistics();\n$data['Complaints'] // string\n$data['Rejects'] // string\n$data['Bounces'] // string\n$data['DeliveryAttempts'] // string\n$data['Timestamp'] // string\n```\n\nSend Email Basic Usage.\n\n```php\n$envelope = new SimpleEmailServiceEnvelope(\n    'your-email@example.com',\n    'Subject',\n    'Message',\n);\n$envelope-\u003eaddTo('to@example.com');\n\n$requestId = $ses-\u003esendEmail($envelope);\n```\n\nSend Email with HTML.\n\n```php\n$envelope = new SimpleEmailServiceEnvelope(\n    'your-email@example.com',\n    'Subject',\n    'Message',\n    '\u003cp\u003eMessage\u003c/p\u003e\u003cimg src=\"http://example.com/any/image\" alt=\"image\"'\n);\n$envelope-\u003eaddTo('to@example.com');\n\n$requestId = $ses-\u003esendEmail($envelope);\n```\n\nSend Email to multiple distinations.\n\n```php\n$envelope = new SimpleEmailServiceEnvelope(\n    'your-email@example.com',\n    'Subject',\n    'Message',\n);\n$envelope-\u003eaddTo(['to1@example.com', 'to2@example.com']);\n$envelope-\u003eaddCc('cc1@example.com');\n$envelope-\u003eaddBcc(['bcc1@example.com'])\n\n$requestId = $ses-\u003esendEmail($envelope);\n```\n\nSend Email with attachment file(s).\n\n```php\n$envelope = new SimpleEmailServiceEnvelope(\n    'your-email@example.com',\n    'Subject',\n    'Message',\n);\n$envelope-\u003eaddTo('to@example.com');\n$envelope-\u003eaddAttachmentFromFile('filename.svg', '/Your/File/name.svg', 'image/svg');\n\n$requestId = $ses-\u003esendEmail($envelope);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokamos%2Fphp-ses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokamos%2Fphp-ses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokamos%2Fphp-ses/lists"}