{"id":34000083,"url":"https://github.com/delaneymethod/flysystem-sharepoint","last_synced_at":"2025-12-13T09:11:57.083Z","repository":{"id":44470552,"uuid":"127897506","full_name":"delaneymethod/flysystem-sharepoint","owner":"delaneymethod","description":"A flysystem driver for Sharepoint API built using PHP.","archived":false,"fork":false,"pushed_at":"2021-10-18T11:14:44.000Z","size":16,"stargazers_count":7,"open_issues_count":1,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-15T06:11:13.246Z","etag":null,"topics":["php"],"latest_commit_sha":null,"homepage":"","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/delaneymethod.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-03T11:26:55.000Z","updated_at":"2023-03-07T13:12:52.000Z","dependencies_parsed_at":"2022-09-07T23:30:22.695Z","dependency_job_id":null,"html_url":"https://github.com/delaneymethod/flysystem-sharepoint","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/delaneymethod/flysystem-sharepoint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delaneymethod%2Fflysystem-sharepoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delaneymethod%2Fflysystem-sharepoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delaneymethod%2Fflysystem-sharepoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delaneymethod%2Fflysystem-sharepoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delaneymethod","download_url":"https://codeload.github.com/delaneymethod/flysystem-sharepoint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delaneymethod%2Fflysystem-sharepoint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27702964,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"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":["php"],"created_at":"2025-12-13T09:11:56.600Z","updated_at":"2025-12-13T09:11:57.069Z","avatar_url":"https://github.com/delaneymethod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flysystem adapter for the Sharepoint API\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/delaneymethod/flysystem-sharepoint.svg?style=flat-square)](https://packagist.org/packages/delaneymethod/flysystem-sharepoint)\n[![Total Downloads](https://img.shields.io/packagist/dt/delaneymethod/flysystem-sharepoint.svg?style=flat-square)](https://packagist.org/packages/delaneymethod/flysystem-sharepoint)\n\nThis package contains a [Flysystem](https://flysystem.thephpleague.com/) adapter for Sharepoint 2013 REST API. Under the hood, the [Sharepoint 2013 REST API](https://www.dropbox.com/developers/documentation/http/overview) is used.\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require delaneymethod/flysystem-sharepoint\n```\n\n\n## Usage\n\nThe first thing you need to do is get an authorisation token from Sharepoint. Sharepoint has made this very easy. You can register a new App within your Sharepoint Site that can be used to generate a client ID and Secret. You'll find more info at [Authorizing REST API calls against SharePoint Site](http://spshell.blogspot.co.uk/2015/03/sharepoint-online-o365-oauth.html). \n\nYou can read the whole article for additional knowledge but the first step is the only step you're interested in for our flysystem-sharepoint adapter to work.\n\nWith an authorisation token you can instantiate a `DelaneyMethod\\Sharepoint\\Client`.\n\n``` php\nuse League\\Flysystem\\Filesystem;\nuse DelaneyMethod\\Sharepoint\\Client as SharepointClient;\nuse DelaneyMethod\\FlysystemSharepoint\\SharepointAdapter;\n\n$siteName = 'YOUR_TEAM_SITE_NAME';\n$siteUrl = 'https://YOUR_SITE.sharepoint.com';\n$publicUrl = 'https://YOUR_SITE.sharepoint.com/:i:/r/sites/YOUR_TEAM_SITE_NAME/Shared%20Documents'\n$clientId = 'YOUR_CLIENT_ID';\n$clientSecret = 'YOUR_CLIENT_SECRET';\n$verify = false; // See http://docs.guzzlephp.org/en/stable/request-options.html#verify\n$accessToken = 'YOUR_ACCESS_TOKEN';\n\n$client = new SharepointClient($siteName, $siteUrl, $publicUrl, $clientId, $clientSecret, $verify, $accessToken);\n\t\t\t\n$adapter = new SharepointAdapter($client);\n\n$filesystem = new Filesystem($adapter, ['url' =\u003e $publicUrl]);\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email hello@delaneymethod.com instead of using the issue tracker.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelaneymethod%2Fflysystem-sharepoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelaneymethod%2Fflysystem-sharepoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelaneymethod%2Fflysystem-sharepoint/lists"}