Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
00ce990
Add github workflow
rkoopmans Jul 26, 2022
f208ec7
update composer
rkoopmans Jul 26, 2022
d928352
Update tests to work on multiple PHP/PHPUnit versions
rkoopmans Jul 26, 2022
54649b1
CI/CD github workflow
rkoopmans Jul 26, 2022
e486397
Update gitignore
rkoopmans Jul 27, 2022
afa9fc6
Add badges to README
rkoopmans Jul 27, 2022
ba03630
Merge pull request #31 from rkoopmans/master
rkoopmans Aug 15, 2022
ea4f0d7
Update CI/CD badge
rkoopmans Aug 15, 2022
33abdf6
Update CI/CD badge again
rkoopmans Aug 15, 2022
f10dffd
Updated request function not to overwrite request body and created te…
yektaturan Sep 1, 2022
6ba7c59
Only run integration tests on push
rkoopmans Sep 20, 2022
5e6f233
Add transcoding API to client
rkoopmans Jul 27, 2022
420702f
Simplify test names
rkoopmans Jul 27, 2022
a0644b5
Update CHANGELOG and bump version
rkoopmans Aug 15, 2022
b527106
Change transcode to convert
rkoopmans Sep 20, 2022
2165f0b
Add method for returning file extension
rkoopmans Sep 20, 2022
fe42293
Merge pull request #32 from tinify/transcoding
rkoopmans Sep 26, 2022
5ee20a3
Update runner from PHP 8.1 to 8.2
rkoopmans Feb 20, 2023
bb68f48
String interpolation fix: https://wiki.php.net/rfc/deprecate_dollar_b…
rkoopmans Feb 20, 2023
1a0623b
Bump version to 1.6.1
rkoopmans Feb 20, 2023
1d23f50
Merge pull request #35 from rkoopmans/master
rkoopmans Feb 21, 2023
aa95841
Fix php 8.4 deprecation
momala454 Jan 23, 2025
cd9338e
Update PHP runner versions
rkoopmans Jan 27, 2025
21c2d79
Merge pull request #37 from momala454/patch-1
rkoopmans Jan 27, 2025
8386ac9
Bump version
rkoopmans Jan 27, 2025
7a005a9
Merge branch 'master' of github.com:wcreateweb/tinify-php into create…
tijmenbruggeman Feb 1, 2025
d71421e
Remove setup
tijmenbruggeman Feb 1, 2025
a2117ce
Remove status check
tijmenbruggeman Feb 4, 2025
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
58 changes: 58 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: PHP CI/CD

on: [push, pull_request]

permissions: {}
jobs:
Unit_tests:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
php-version: [
"5.4",
"5.6",
"7.4",
"8.0",
"8.4",
]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: shivammathur/setup-php@2.32.0
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- uses: actions/checkout@v3
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-progress
- name: Run test suite
run: vendor/bin/phpunit
Integration_tests:
if: github.event_name == 'push'
runs-on: ${{ matrix.os }}
timeout-minutes: 10
needs: Unit_tests
strategy:
fail-fast: false
matrix:
php-version: [
"7.4",
"8.4",
]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: shivammathur/setup-php@2.32.0
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- uses: actions/checkout@v3
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-progress
- name: Run test suite
env:
TINIFY_KEY: ${{ secrets.TINIFY_KEY }}
run: vendor/bin/phpunit --no-configuration test/integration.php
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
vendor
.phpunit.result.cache
composer.lock
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 1.6.2
* Remove deprecated curl constant (https://php.watch/versions/8.4/CURLOPT_BINARYTRANSFER-deprecated)

## 1.6.1
* Fixed string interpolation for php 8.2: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation

## 1.6.0
* Support to run the unittests on newer versions of PHP (5.5 +)
* Add API methods for converting/transcoding and transformation
* Add helper function for returning the compressed file extension

## 1.5.2
* Fail early if version of curl/openssl is too old.

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[<img src="https://travis-ci.org/tinify/tinify-php.svg?branch=master" alt="Build Status">](https://travis-ci.org/tinify/tinify-php)
[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/tinify/tinify-php/blob/main/LICENSE)
[![CI_CD](https://github.com/tinify/tinify-php/actions/workflows/ci-cd.yaml/badge.svg?branch=master)](https://github.com/tinify/tinify-php/actions/workflows/ci-cd.yaml)
[![Packagist Version](https://img.shields.io/packagist/v/tinify/tinify)](https://packagist.org/packages/tinify/tinify)
[![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/tinify/tinify)](https://packagist.org/packages/tinify/tinify)

# Tinify API client for PHP

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
},

"require-dev": {
"symfony/yaml": "~2.0",
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5 || ^8.4 || ^9.3"
},

"autoload": {
Expand Down
Loading