Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added namespacing and composer support #1

Closed
wants to merge 5 commits into from

Conversation

casperbakker
Copy link

I have added namespacing and composer support. We needed it to use PrintNode in our Picqer app.

Only 'downside' is that minimum requirement is PHP 5.3 now, instead of PHP 5.2. But since both 5.2 and 5.3 are both not supported anymore, I guess it is not a big problem.

For proper composer use, the repository should be tagged with version numbers, so users can pin a specific version of the API client.

PrintNodeJames pushed a commit that referenced this pull request Jul 17, 2015
@casperbakker
Copy link
Author

Already added by PrintNode

shakethatweight-simon referenced this pull request in shakethatweight-simon/PrintNode-PHP Nov 23, 2020
Fixes the following error

```Fatal error: Uncaught TypeError: Argument 1 passed to PrintNode\Request::__construct() must be an instance of PrintNode\Credentials, instance of PrintNode\ApiKey given, called in my-file.php on line 13 and defined in vendor/printnode/printnode-php/src/PrintNode/Request.php:85

Stack trace:
#0 /var/www/vhosts/shakepack.co.uk/public/printnode.php(13): PrintNode\Request->__construct(Object(PrintNode\ApiKey))
#1 {main} thrown in /var/www/vhosts/shakepack.co.uk/vendor/printnode/printnode-php/src/PrintNode/Request.php on line 85```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant