Skip to content
Open
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 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
vendor
build/
.phpunit.result.cache
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2018, DeskPRO Ltd.
Copyright (c) 2018, Deskpro Ltd.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"require": {
"php": "^7.4|^8.0",
"psr/log": "^1.0"
"psr/log": "^1.0|^2.0|^3.0"
},
"autoload": {
"psr-0": {
Expand Down
453 changes: 260 additions & 193 deletions composer.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/Deskpro/API/APIResponse.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/APIResponseInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/DeskproClient.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/DeskproClientInterface.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/Exception/APIException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API\Exception;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/Exception/AccessDeniedException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API\Exception;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/Exception/AuthenticationException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API\Exception;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/Exception/MalformedResponseException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API\Exception;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API\Exception;
Expand Down
8 changes: 4 additions & 4 deletions src/Deskpro/API/URLInterpolator.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

namespace Deskpro\API;
Expand Down
8 changes: 4 additions & 4 deletions tests/Deskpro/API/APIResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

use PHPUnit\Framework\TestCase;
Expand Down
20 changes: 10 additions & 10 deletions tests/Deskpro/API/DeskproClientTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -143,9 +143,9 @@ public function testGet()
'num_comments' => 1,
'num_ratings' => 14,
'status' => 'published',
'date_created' => '2017-11-16T13:40:04+0000',
'date_updated' => '2017-11-27T12:43:34+0000',
'date_published' => '2017-11-27T12:43:34+0000'
'date_created' => '2025-11-16T13:40:04+0000',
'date_updated' => '2025-11-27T12:43:34+0000',
'date_published' => '2025-11-27T12:43:34+0000'
]
],
'meta' => [
Expand Down Expand Up @@ -184,9 +184,9 @@ public function testGetAsync()
'num_comments' => 1,
'num_ratings' => 14,
'status' => 'published',
'date_created' => '2017-11-16T13:40:04+0000',
'date_updated' => '2017-11-27T12:43:34+0000',
'date_published' => '2017-11-27T12:43:34+0000'
'date_created' => '2025-11-16T13:40:04+0000',
'date_updated' => '2025-11-27T12:43:34+0000',
'date_published' => '2025-11-27T12:43:34+0000'
]
],
'meta' => [
Expand Down
8 changes: 4 additions & 4 deletions tests/Deskpro/API/URLInterpolatorTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/*
* DeskPRO (r) has been developed by DeskPRO Ltd. https://www.deskpro.com/
* DeskPRO (r) has been developed by Deskpro Ltd. https://www.deskpro.com/
* a British company located in London, England.
*
* All source code and content Copyright (c) 2017, DeskPRO Ltd.
* All source code and content Copyright (c) 2025, Deskpro Ltd.
*
* The license agreement under which this software is released
* can be found at https://www.deskpro.com/eula/
Expand All @@ -21,9 +21,9 @@
* another decade.
*
* Like the work you see? Think you could make it better? We are always
* looking for great developers to join us: http://www.deskpro.com/jobs/
* looking for great developers to join us: https://www.deskprocom/jobs/
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL in the comment contains a typo: "deskprocom" should be "deskpro.com" (missing dot between "deskpro" and "com").

Suggested change
* looking for great developers to join us: https://www.deskprocom/jobs/
* looking for great developers to join us: https://www.deskpro.com/jobs/

Copilot uses AI. Check for mistakes.
*
* ~ Thanks, Everyone at Team DeskPRO
* ~ Thanks, Everyone at Team Deskpro
*/

use PHPUnit\Framework\TestCase;
Expand Down