Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am working in this script. I am trying to use use PayPal\Rest\ApiContext; code in my controller. I can't use composer.
In this regard How can I use PayPal ?
I am getting below error.
It's hard to believe you "can't use composer" as it looks like the project is using Laravel which has autoloading. Without proper autoloading set up, for this class to be found you'll have to add require statements to your project -- and you'll need to require each PayPal API source file so you don't get additional class not found errors. This is the "old" PHP way of doing things.
See https://www.php.net/manual/en/function.include.php for documentation.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I had success setup the Docusign-php-client with everything working!
But how can I access the api directly?
I can only use public/index.php page to test all the samples,
how can I create my own page or own api call?
Is there any simple sample? sorry I‘m newbie on program, please help, thanks!
I'm not clear what you already did since you didn't share code, but I would suggest you start by using https://github.com/docusign/code-examples-php which is a repo with full working code and a PHP app using the DocuSign PHP library/SDK.
Try to use it and see how it work as a means of jump-starting your development.
You can then either modify it to fit your needs or copy/paste relevant pieces of code into your app.
They are 31 PHP examples in here -> https://github.com/docusign/code-examples-php. DocuSign php client is just an API wrapper. If you need more info you can visit https://developers.docusign.com/ for more info
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am trying to use the plesk api in order to use some of its data to a web application and more specifically the data usage and the permitted storage.
I found this article but I wasn't able to find some php code on how I ll retrieve and display the data. Any guidance would be highly appreciated.
Have you checked https://docs.plesk.com/en-US/17.0/api-rpc/creating-client-software/sending-request-packets.28727/?
It shows how to create requests and next page shows response structure.
PHP examples are at https://github.com/plesk/api-examples/tree/master/php.
To display data you will have to parse the xml result first. You can use SimpleXML to do this.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm using CakePHP (v3.0) and I want to create a bar chart.
I have tried to use "libchart" and "pchart" libraries but always I get problems (I think that namespaces is one of them..) to import and use these libraries on my controller class...
What's the simplest way to create a bar chart on CakePHP 3 ?
You can place the chart libraries in vendor folder and include them using PHP's include function.
To call their class just use a backslash before them to make them a Fully qualified name like
$chart = new \VerticalBarChart(500, 250);
Now you can use $chart without any issues.
References:
PHP Namespaces
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've used Doctrine together with frameworks like Symfony or Zend. Is there a way to use it without such a framework, with plain, core php?
I've used Doctrine together with frameworks like simfony or zend. Is there a way to use it without such a framework, with plain php?
OF course. you start here , right from the doc :
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/tutorials/getting-started.html
What i mean is you should really have a look at the doctrine doc if you did not.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to figure out how OpenID works, therefore I am trying to write my own simple class for my web app that uses Google OpenID.
I am wondering if there are any examples that you know, or where I can find some details so I can implement my own class.
I am not looking for a very general class. I need something that will help me write my own implementation.
I have made good experiences with lightopenid (gitorious download). Unlike two other OpenID libraries I tried for PHP, it was very easy to use, has no external dependencies, is compatible with PHP5 and has no warnings.
There is an example for using Google.
And to display those buttons in the HTML page: http://code.google.com/p/openid-selector/