From 7865d3d76acddfb2882810f2b9c104f51464b263 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 29 Apr 2021 10:13:19 -0400 Subject: [PATCH 01/45] Remove short array syntax for PHP 5.3 compatibility --- src/Curl/Curl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index abbf7c7215..e4c378d0f5 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -346,12 +346,12 @@ public function download($url, $mixed_filename) public function _fastDownload($url, $filename, $connections = 4) { // First we need to retrive the 'Content-Length' header. // Use GET because not all hosts support HEAD requests. - $this->setOpts([ + $this->setOpts(array( CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_NOBODY => true, CURLOPT_HEADER => true, CURLOPT_ENCODING => '', - ]); + )); $this->setUrl($url); $this->exec(); @@ -371,7 +371,7 @@ public function _fastDownload($url, $filename, $connections = 4) { $nextChunk = $chunkSize; // We need this later. - $file_parts = []; + $file_parts = array(); $multi_curl = new MultiCurl(); $multi_curl->setConcurrency($connections); From 159542c3cf65f9c40b119b87b0427f196c356dbf Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 29 Apr 2021 10:13:53 -0400 Subject: [PATCH 02/45] =?UTF-8?q?Bump=20version:=208.9.2=20=E2=86=92=208.9?= =?UTF-8?q?.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Curl/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index e4c378d0f5..eb30ce6cb0 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -7,7 +7,7 @@ class Curl { - const VERSION = '8.9.2'; + const VERSION = '8.9.3'; const DEFAULT_TIMEOUT = 30; public $curl = null; From 6f7af65d9a4c7821eefab3b8858293204ddba056 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Wed, 9 Jun 2021 22:36:58 -0400 Subject: [PATCH 03/45] Schedule continuous integration workflow to run daily --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 951e4d76bd..836eecf4e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: - master + schedule: + - cron: '0 17 * * *' jobs: ci: From 9c489c68a317f98b9d1fe72ae8f9ce15f3b697be Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Wed, 9 Jun 2021 22:39:04 -0400 Subject: [PATCH 04/45] Use flat icons --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 653766e722..8022970f09 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # PHP Curl Class: HTTP requests made easy -[![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg)](https://github.com/php-curl-class/php-curl-class/releases/) -[![](https://img.shields.io/github/license/php-curl-class/php-curl-class.svg)](https://github.com/php-curl-class/php-curl-class/blob/master/LICENSE) -[![](https://img.shields.io/github/workflow/status/php-curl-class/php-curl-class/ci)](https://github.com/php-curl-class/php-curl-class/actions/workflows/ci.yml) -[![](https://img.shields.io/packagist/dt/php-curl-class/php-curl-class.svg)](https://github.com/php-curl-class/php-curl-class/releases/) +[![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/releases/) +[![](https://img.shields.io/github/license/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/blob/master/LICENSE) +[![](https://img.shields.io/github/workflow/status/php-curl-class/php-curl-class/ci?style=flat-square)](https://github.com/php-curl-class/php-curl-class/actions/workflows/ci.yml) +[![](https://img.shields.io/packagist/dt/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/releases/) PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs. From f56a69ce7d5f96fd886f5fad7b5f873cc08299a8 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Wed, 9 Jun 2021 22:43:43 -0400 Subject: [PATCH 05/45] Add badges --- www/index.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/www/index.php b/www/index.php index fb263e7f35..42af54bcf0 100644 --- a/www/index.php +++ b/www/index.php @@ -190,6 +190,18 @@ class="pl-pds">
+ + + + + + + + + + + + From b68ca76120ba351de219e703d2f9a9eaccce7fb2 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Wed, 9 Jun 2021 22:44:48 -0400 Subject: [PATCH 06/45] Remove links --- www/index.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/www/index.php b/www/index.php index 42af54bcf0..afd243a738 100644 --- a/www/index.php +++ b/www/index.php @@ -177,19 +177,7 @@ class="pl-pds">{"login":"php-curl-class","id":7654321,"avatar_url": ...}< class="pl-pds">
- - +

@@ -202,6 +190,7 @@ class="pl-pds">
+

From 57eafc62a9f5c582f178adb41e1f24016a271257 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Wed, 9 Jun 2021 22:45:49 -0400 Subject: [PATCH 07/45] Clean up --- www/index.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/www/index.php b/www/index.php index afd243a738..83b0fbdc8a 100644 --- a/www/index.php +++ b/www/index.php @@ -178,18 +178,18 @@ class="pl-pds">

- - - - - - - - - - - - + + + + + + + + + + + +

From fee376cfa90c2e8c4ba009f7c85a790daeabc2d1 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Wed, 9 Jun 2021 22:48:22 -0400 Subject: [PATCH 08/45] Improve page styles --- www/index.php | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/www/index.php b/www/index.php index 83b0fbdc8a..1b5f238a42 100644 --- a/www/index.php +++ b/www/index.php @@ -4,15 +4,14 @@ PHP Curl Class - +