PHPackages                             keboola/looker-api - 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. keboola/looker-api

ActiveLibrary[API Development](/categories/api)

keboola/looker-api
==================

7.0.0(2y ago)41.5k2[2 PRs](https://github.com/keboola/looker-api/pulls)proprietaryPHPPHP &gt;=5.5 &lt;8.0CI failing

Since Oct 3Pushed 2y ago15 watchersCompare

[ Source](https://github.com/keboola/looker-api)[ Packagist](https://packagist.org/packages/keboola/looker-api)[ Docs](http://swagger.io)[ RSS](/packages/keboola-looker-api/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (4)Versions (6)Used By (0)

SwaggerClient-php
=================

[](#swaggerclient-php)

API 4.0 is the current release of the Looker API. API 3.1 is deprecated.

### Authorization

[](#authorization)

The classic method of API authorization uses Looker **API** credentials for authorization and access control. Looker admins can create API 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

[](#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

[](#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

[](#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

[](#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

[](#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.6
- Build package: io.swagger.codegen.languages.PhpClientCodegen For more information, please visit

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

[](#requirements)

PHP 5.5 and later

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

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/keboola/looker-api.git"
    }
  ],
  "require": {
    "keboola/looker-api": "*@dev"
  }
}

```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

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

Tests
-----

[](#tests)

To run the unit tests:

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

```

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

[](#getting-started)

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

```
