Download the PHP package ape-dev-de/microsoft-graph-sdk without Composer

On this page you can find all versions of the php package ape-dev-de/microsoft-graph-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 microsoft-graph-sdk

Microsoft Graph SDK for PHP

A production-ready PHP SDK for Microsoft Graph API, automatically generated from OpenAPI specifications with strict type-safe DTOs and request builder architecture.

Features

Installation

Generate SDK

Run the generator script to download the OpenAPI spec and generate the SDK:

This will:

  1. Download the latest Microsoft Graph OpenAPI specification
  2. Generate strict DTOs and models
  3. Create request builder classes
  4. Set up authentication providers
  5. Format all code with PHP CS Fixer

Usage

Basic Setup with Bearer Token

Client Credentials Flow

Examples

Get Current User

List Users

Get Specific User

Create User

Update User

Delete User

Get User's Messages

Query Parameters

Collection Responses

All collection responses implement ArrayAccess, Countable, and IteratorAggregate for intuitive array-like behavior:

Array Properties

Model properties that are arrays are properly typed with PHPDoc annotations:

Interactive Tinker Shell

Debug and explore the Graph API with the interactive REPL:

Features:

Example session:

Architecture

Request Builders

Request builders provide a fluent API for constructing Graph API requests:

DTOs and Models

All models are strictly typed PHP classes generated from the OpenAPI specification:

Authentication

Two authentication providers are included:

  1. BearerTokenAuthenticationProvider - For pre-acquired access tokens
  2. ClientCredentialsAuthenticationProvider - OAuth 2.0 client credentials flow with automatic token refresh

Requirements

Development

Regenerate SDK

To regenerate the SDK with the latest OpenAPI specification:

Extend Request Builders

You can extend the generated request builders to add custom functionality:

License

This SDK is auto-generated from Microsoft Graph OpenAPI specifications.

Author

Alexis Peters ([email protected])


All versions of microsoft-graph-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0
symfony/property-info Version ^7.3
symfony/property-access Version ^7.3
phpdocumentor/reflection-docblock Version ^5.6
symfony/serializer Version ^7.3
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 ape-dev-de/microsoft-graph-sdk contains the following files

Loading the files please wait ...