Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,656 changes: 0 additions & 1,656 deletions .doxygen

This file was deleted.

24 changes: 19 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
sudo: false
dist: trusty
dist: bionic

language: php

php:
- "5.5"
- "5.4"
matrix:
include:
- php: 5.5
dist: trusty
- php: 5.6
dist: xenial
- php: 7.1
- php: 7.2
- php: 7.3

script: phpunit --bootstrap PodioAPI.php tests
install:
- composer install --no-interaction

script:
- mkdir -p build/logs
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml --bootstrap vendor/autoload.php tests

after_success:
- travis_retry php vendor/bin/php-coveralls

notifications:
email: false
17 changes: 17 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
5.0.0 / DRAFT
==================

* Using composer for Kint dependency instead of copied files
* Add PodioTagItemField type
* Adding filter API missing file_count parameter
* Add scope to PodioOAuth


4.4.0 / 2019-06-02
==================

* This is the first release under the new package name <strong>podio-community/podio-php</strong>.
It contains several fixes and minor improvements and should generally be backwards compatible to podio/podio-php v4.3.0.
* Several fixes and improvements: https://github.com/podio-community/podio-php/compare/4.3.0...v4.4.0


4.3.0 / 2015-09-30
==================

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PRs can be be merged by any member of the [Podio Community](https://github.com/o

## Versioning

Versioning generally follows: https://semver.org/. New versions should be cut as often as neccessary. With each release `CHANGES.md` is updated.
Versioning generally follows: https://semver.org/. New versions should be cut as often as necessary. With each release `CHANGES.md` is updated.

## Feature Requests / Issues

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
test:
phpunit --bootstrap PodioAPI.php tests
phpunit --bootstrap vendor/autoload.php tests
74 changes: 0 additions & 74 deletions PodioAPI.php

This file was deleted.

14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

This is the non-official PHP Client for interacting with the Podio API maintained by the Podio community and the continuation of the former official Podio PHP Client. Most parts of the Podio API are covered in this client. See [podio-community.github.io/podio-php](https://podio-community.github.io/podio-php/) for documentation.

To contribute, please read: [the contribution guide](https://github.com/podio-community/podio-php/blob/master/CONTRIBUTING.md).

[![Build Status](https://travis-ci.org/podio-community/podio-php.svg?branch=master)](https://travis-ci.org/podio-community/podio-php)

[![Coverage Status](https://coveralls.io/repos/github/podio-community/podio-php/badge.svg?branch=master)](https://coveralls.io/github/podio-community/podio-php?branch=master)

## Usage
Install via [composer](https://getcomposer.org):
```bash
composer require podio-community/podio-php
```

## Contribute

To contribute, please read: [the contribution guide](https://github.com/podio-community/podio-php/blob/master/CONTRIBUTING.md).
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@
}
],
"require": {
"php": ">=5.3.0",
"php": ">=5.5.0",
"kint-php/kint": "^3.2"
},
"suggest": {
"kdyby/curl-ca-bundle": "Improve security through providing current CA ROOT certificates bundle"
},
"autoload": {
"classmap": ["lib/", "models/"]
"classmap": ["lib/", "lib/error/", "models/", "models/field/"]
},
"require-dev": {
"phpunit/phpunit": "^4.0"
"phpunit/phpunit": "^4.0",
"php-coveralls/php-coveralls": "^2.1"
}
}
2 changes: 1 addition & 1 deletion lib/PodioObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public static function listing($response_or_attributes) {
public static function member($response) {
if ($response) {
$class_name = get_called_class();
return new $class_name(array_merge($response->json_body(), array('__api_values' => true)));
return new $class_name(array_merge($response instanceof PodioResponse ? $response->json_body() : $response, array('__api_values' => true)));
}
}

Expand Down
5 changes: 5 additions & 0 deletions lib/error/PodioAuthorizationError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioAuthorizationError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioBadRequestError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioBadRequestError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioConflictError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioConflictError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioConnectionError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioConnectionError extends Exception
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioDataIntegrityError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioDataIntegrityError extends Exception
{
}
14 changes: 0 additions & 14 deletions lib/PodioError.php → lib/error/PodioError.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,3 @@ public function __toString() {
return $str;
}
}
class PodioInvalidGrantError extends PodioError {}
class PodioBadRequestError extends PodioError {}
class PodioAuthorizationError extends PodioError {}
class PodioForbiddenError extends PodioError {}
class PodioNotFoundError extends PodioError {}
class PodioConflictError extends PodioError {}
class PodioGoneError extends PodioError {}
class PodioRateLimitError extends PodioError {}
class PodioServerError extends PodioError {}
class PodioUnavailableError extends PodioError {}
class PodioMissingRelationshipError extends PodioError {}

class PodioConnectionError extends Exception {}
class PodioDataIntegrityError extends Exception {}
5 changes: 5 additions & 0 deletions lib/error/PodioForbiddenError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioForbiddenError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioGoneError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioGoneError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioInvalidGrantError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioInvalidGrantError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioMissingRelationshipError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioMissingRelationshipError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioNotFoundError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioNotFoundError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioRateLimitError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioRateLimitError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioServerError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioServerError extends PodioError
{
}
5 changes: 5 additions & 0 deletions lib/error/PodioUnavailableError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

class PodioUnavailableError extends PodioError
{
}
Loading