{"id":18243773,"url":"https://github.com/brainstreaminfo/nylas-v3-php","last_synced_at":"2025-07-19T06:06:51.836Z","repository":{"id":260235999,"uuid":"880234302","full_name":"brainstreaminfo/nylas-v3-php","owner":"brainstreaminfo","description":"Nylas PHP SDK for V3","archived":false,"fork":false,"pushed_at":"2025-02-19T12:06:35.000Z","size":80,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T15:01:11.953Z","etag":null,"topics":["email-sync","nylas","php","sdk"],"latest_commit_sha":null,"homepage":"https://www.brainstreamtechnolabs.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brainstreaminfo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-29T11:14:06.000Z","updated_at":"2025-02-19T12:06:39.000Z","dependencies_parsed_at":"2025-01-16T12:39:53.486Z","dependency_job_id":"589a18ee-9cdf-4172-8617-11532d9d9f1c","html_url":"https://github.com/brainstreaminfo/nylas-v3-php","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"d2103c1d15a167edbdc9b28277a04baf0155a2d3"},"previous_names":["brainstreaminfo/nylas-v3-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/brainstreaminfo/nylas-v3-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstreaminfo%2Fnylas-v3-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstreaminfo%2Fnylas-v3-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstreaminfo%2Fnylas-v3-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstreaminfo%2Fnylas-v3-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainstreaminfo","download_url":"https://codeload.github.com/brainstreaminfo/nylas-v3-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstreaminfo%2Fnylas-v3-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265896127,"owners_count":23845426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["email-sync","nylas","php","sdk"],"created_at":"2024-11-05T09:03:01.429Z","updated_at":"2025-07-19T06:06:51.810Z","avatar_url":"https://github.com/brainstreaminfo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nylas PHP SDK for api version 3\n\nThis is the GitHub repository for the Nylas PHP SDK.\n\nThe Nylas Communications Platform provides REST APIs for [Email](https://developer.nylas.com/docs/v3/email/), [Calendar](https://developer.nylas.com/docs/v3/calendar/), and [Contacts](https://developer.nylas.com/docs/v3/contacts/), and the Nylas SDK is the quickest way to build your integration using PHP.\n\nHere are some resources to help you get started:\n\n- [Sign up for your free Nylas account](https://dashboard-v3.nylas.com/register)\n- [Nylas API v3 Quickstart Guide](https://developer.nylas.com/docs/v3/getting-started/quickstart/)\n- [Nylas API Reference](https://developer.nylas.com/docs/v3/api-references/)\n\n## ⚙️ Install\nThis library is available on https://packagist.org/packages/brainstream/nylas-php\u003c/br\u003e\nYou can install it by running\n\n```shell\ncomposer require brainstream/nylas-php\n```\n\n## ⚡️Usage\n\nTo use this SDK, you must first [get a free Nylas account](https://dashboard-v3.nylas.com/register).\n\nThen, follow the Quickstart guide to [set up your first app and get your API keys](https://developer.nylas.com/docs/v3/getting-started/quickstart/).\n\n### 🚀 Making Your First Request\n\nYou use the `NylasClient` object to make requests to the Nylas API. The SDK is organized into different resources, each of which has methods to make requests to the API. Each resource is available through the `NylasClient` object configured with your API key.\n\nFor example, first configure client object like below:\n\n```php\nuse Nylas\\Client;\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n$options = [\n    'api_key'   =\u003e 'NYLAS_API_KEY',\n    'client_id' =\u003e 'NYLAS_CLIENT_ID',\n    'region'    =\u003e 'NYLAS_REGION', // optional - Default \"us\"\n];\n\n$nylasClient = new Client($options);\n```\nThen use it for make consecutive api requests.\n\n## Administrative Api info.\n\n### Application api\nApplication api could be like:\n\n```php\ntry {\n    $applications = $nylasClient-\u003eAdministration-\u003eApplication-\u003elist();\n    print_r($applications);\n} catch (GuzzleException) {}\n```\n\n### Authentication api\nNylas support 2 types of user authentication\n1. Nylas hosted auth(OAuth 2.0)\n2. Custom auth\n\n\n### Grant api\nGrants associate with an application.\nIt could be like:\n\n```php\ntry {\n    $grants = $nylasClient-\u003eAdministration-\u003eGrants-\u003elist();\n    print_r($grants);\n} catch (GuzzleException) {}\n```\n\n### Connectors api\nConnectors(providers) of an application.\n\n```php\ntry {\n    $connectors = $nylasClient-\u003eAdministration-\u003eConnectors-\u003elist();\n    print_r($connectors);\n} catch (GuzzleException) {}\n```\n\n### Connectors Credential api\n```php\ntry {\n    $credentials = $nylasClient-\u003eAdministration-\u003eConnectorsCredentials-\u003elist(\n        PROVIDER_STRING\n    );\n    print_r($credentials);\n} catch (GuzzleException) {}\n\n//NOTE: Replace \"PROVIDER_STRING\" with real provider string\n```\n\n## Email, Calender and Draft apis usage\n\n### Email api\n```php\ntry {\n    $messages = $nylasClient-\u003eMessages-\u003eMessage-\u003elist(\n        GRANT_ID_STRING\n    );\n    print_r($messages);\n} catch (GuzzleException) {}\n\n//NOTE: Replace \"GRANT_ID_STRING\" with real grant id\n```\n\n### Calendar api\n```php\ntry {\n    $calendars = $nylasClient-\u003eCalendars-\u003eCalendar-\u003elist(\n        GRANT_ID_STRING\n    );\n    print_r($calendars);\n} catch (GuzzleException) {}\n\n//NOTE: Replace \"GRANT_ID_STRING\" with real grant id\n```\n\n### Drafts api\n```php\ntry {\n    $drafts = $nylasClient-\u003eDrafts-\u003eDraft-\u003elist(\n        GRANT_ID_STRING\n    );\n    print_r($drafts);\n} catch (GuzzleException) {}\n\n//NOTE: Replace \"GRANT_ID_STRING\" with real grant id\n```\n\n## Launching the tests\n\n1. Initialise composer dependency by  `composer install`\n2. Add your Nylas App. info in tests/AbsCase.php\n3. Launch the test with `composer run-script test`\n4. Another way to run tests: ./tests/do.sh foo.php --filter fooMethod, see tests/do.sh\n\n## Acknowledgements\n\nThis project is based on [lanlin/nylas-php](https://github.com/lanlin/nylas-php), which is licensed under the MIT License.\nThe original code has been modified and is also available under the MIT License.\n\n## 📝License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n## Contact us\n\nIf you need additional assistance, drop us an email at [info@brainstream.tech](mailto:info@brainstream.tech).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstreaminfo%2Fnylas-v3-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainstreaminfo%2Fnylas-v3-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstreaminfo%2Fnylas-v3-php/lists"}