Download the PHP package tualo/msgraph without Composer

On this page you can find all versions of the php package tualo/msgraph. 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 msgraph

msgraph

PHP-Integration fuer Microsoft Graph innerhalb der Tualo-Office-Anwendung.

Installation

Das Paket wird im Host-Projekt ueber Composer installiert:

Composer registriert dabei den Namespace Tualo\Office\MSGraph\ fuer das Verzeichnis src/ und bindet src/functions.php automatisch ein. Die Microsoft-Graph-Abhaengigkeit (microsoft/microsoft-graph ab 2.32.0) wird ebenfalls installiert.

Setup

Nach der Installation sind die folgenden Schritte erforderlich:

  1. Die SQL-Definitionen des Pakets ueber den migrations-/setup-Mechanismus der Tualo-Office-Anwendung einspielen. Dadurch werden unter anderem die Graph-Scopes und Webhook-Datenbanktabellen angelegt.
  2. In Microsoft Entra ID eine App-Registrierung anlegen und fuer die benoetigten Microsoft-Graph-APIs die passenden delegierten oder Application-Berechtigungen vergeben. Die Berechtigungen muessen anschliessend administrativ genehmigt werden, sofern Microsoft dies verlangt.
  3. tenantId und clientId in der MS-Graph-Konfiguration hinterlegen. Die Setup-Route /msgraph/setup/apiconfig akzeptiert diese Werte per POST als tenant_id und client_id.
  4. Fuer den App-only-Zugriff zusaetzlich ein Client Secret hinterlegen und defaultUserId setzen. Das Secret wird nicht im Quellcode gespeichert.
  5. Die benoetigten Scopes in msgraph_scope pruefen bzw. ergaenzen. Die Standardwerte werden durch src/sql/msgraph_scope.sql angelegt.

Authentifizierung

Das Paket unterstuetzt zwei Betriebsarten:

Die Konfigurationswerte werden in den Tabellen msgraph_setup, msgraph_environments und msgraph_app_environments verwaltet. Die Anwendung benoetigt ausserdem eine aktive Session-Datenbank, da Tokens und benutzerspezifische Einstellungen dort abgelegt werden.

Verwendung

Nach erfolgreichem Setup stehen die registrierten Routen unter /msgraph/* zur Verfuegung. Der PHP-Namespace lautet:


All versions of msgraph with dependencies

PHP Build Version
Package Version
Requires microsoft/microsoft-graph Version ^3.9.0
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 tualo/msgraph contains the following files

Loading the files please wait ...