Download the PHP package tutu-ru/lib-msgraph-sdk without Composer

On this page you can find all versions of the php package tutu-ru/lib-msgraph-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lib-msgraph-sdk

Get started with the Microsoft Graph SDK for PHP

Build Status Latest Stable Version

Get started with the PHP Connect Sample

If you want to play around with the PHP library, you can get up and running quickly with the PHP Connect Sample. This sample will start you with a little Laravel project that helps you with registration, authentication, and making a simple call to the service.

Install the SDK

You can install the PHP SDK with Composer, either run composer require microsoft/microsoft-graph, or edit your composer.json file:

Get started with Microsoft Graph

Register your application

Register your application to use the Microsoft Graph API by using one of the following supported authentication portals:

Authenticate with the Microsoft Graph service

The Microsoft Graph SDK for PHP does not include any default authentication implementations. The thephpleague/oauth2-client library will handle the OAuth2 flow for you and provide a usable token for querying the Graph.

To authenticate as an application you can use the Guzzle HTTP client, which comes preinstalled with this library, for example like this:

For an integrated example on how to use Oauth2 in a Laravel application and use the Graph, see the PHP Connect Sample.

Call Microsoft Graph

The following is an example that shows how to call Microsoft Graph.

Develop

Debug

You can use the library with a proxy such as Fiddler or Charles Proxy to debug requests and responses as they come across the wire. Set the proxy port on the Graph object like this:

Then, open your proxy client to view the requests & responses sent using the library.

Screenshot of Fiddler /me/sendmail request and response

This is especially helpful when the library does not return the results you expected to determine whether there are bugs in the API or this SDK. Therefore, you may be asked to provide this information when attempting to triage an issue you file.

Run Tests

Run

from the base directory.

The set of functional tests are meant to be run against a test account. Currently, the tests to do not restore state of the account.

Documentation and resources

Issues

View or log issues on the Issues tab in the repo.

Contribute

Please read our Contributing guidelines carefully for advice on how to contribute to this repo.

Copyright and license

Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT license.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.


All versions of lib-msgraph-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
guzzlehttp/guzzle Version ^6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tutu-ru/lib-msgraph-sdk contains the following files

Loading the files please wait ....