PHPackages                             alexkart/looker-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. alexkart/looker-php-sdk

ActiveLibrary[API Development](/categories/api)

alexkart/looker-php-sdk
=======================

PHP SDK for Looker API

0.2.0(3y ago)22202[1 PRs](https://github.com/alexkart/looker-php-sdk/pulls)1proprietaryPHPPHP &gt;=5.5

Since Jun 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alexkart/looker-php-sdk)[ Packagist](https://packagist.org/packages/alexkart/looker-php-sdk)[ Docs](http://swagger.io)[ RSS](/packages/alexkart-looker-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (1)

Looker PHP SDK
==============

[](#looker-php-sdk)

API 4.0 is the current release of the Looker API. API 3.1 is deprecated. ### Authorization The classic method of API authorization uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. API 4.0 adds additional ways to authenticate API requests, including OAuth and CORS requests. For details, see [Looker API Authorization](https://cloud.google.com/looker/docs/r/api/authorization). ### API Explorer The API Explorer is a Looker-provided utility with many new and unique features for learning and using the Looker API and SDKs. For details, see the [API Explorer documentation](https://cloud.google.com/looker/docs/r/api/explorer). ### Looker Language SDKs The Looker API is a RESTful system that should be usable by any programming language capable of making HTTPS requests. SDKs for a variety of programming languages are also provided to streamline using the API. Looker has an OpenSource [sdk-codegen project](https://github.com/looker-open-source/sdk-codegen) that provides several language SDKs. Language SDKs generated by `sdk-codegen` have an Authentication manager that can automatically authenticate API requests when needed. For details on available Looker SDKs, see [Looker API Client SDKs](https://cloud.google.com/looker/docs/r/api/client_sdks). ### API Versioning Future releases of Looker expand the latest API version release-by-release to securely expose more and more of the core power of the Looker platform to API client applications. API endpoints marked as "beta" may receive breaking changes without warning (but we will try to avoid doing that). Stable (non-beta) API endpoints should not receive breaking changes in future releases. For details, see [Looker API Versioning](https://cloud.google.com/looker/docs/r/api/versioning). ### In This Release API 4.0 version was introduced to make adjustments to API functions, parameters, and response types to fix bugs and inconsistencies. These changes fall outside the bounds of non-breaking additive changes we can make to the previous API 3.1. One benefit of these type adjustments in API 4.0 is dramatically better support for strongly typed languages like TypeScript, Kotlin, Swift, Go, C#, and more. See the [API 4.0 GA announcement](https://developers.looker.com/api/advanced-usage/version-4-ga) for more information about API 4.0. The API Explorer can be used to [interactively compare](https://cloud.google.com/looker/docs/r/api/explorer#comparing_api_versions) the differences between API 3.1 and 4.0. ### API and SDK Support Policies Looker API versions and language SDKs have varying support levels. Please read the API and SDK [support policies](https://cloud.google.com/looker/docs/r/api/support-policy) for more information.

This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 4.0.23.0
- Build package: io.swagger.codegen.languages.PhpClientCodegen For more information, please visit

***There is also an [Advanced Looker PHP SDK](https://github.com/alexkart/looker-php-sdk-advanced). It adds extra functionality on top of this generated SDK for ease of use like a simplified login process, automatic access token renewal, etc.***

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

```
composer require alexkart/looker-php-sdk

```

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
require_once('/path/to/looker-php-sdk/vendor/autoload.php');
```

Getting Started
---------------

[](#getting-started)

See usage examples in the `examples` folder. Set your API credentials in the `login.php`.

Requirements
------------

[](#requirements)

PHP 5.5 and later

Tests
-----

[](#tests)

To run the unit tests:

```
composer install
./vendor/bin/phpunit

```

Getting Started
---------------

[](#getting-started-1)

Please follow the [installation procedure](#installation--usage) and then run the following:

```
