Comments (13)
Hello, thanks for your report.
As fast solution you can add a minimum-stability
Flag to your composer.json. There is a Documentation-Page from composer about this topic https://getcomposer.org/doc/04-schema.md#minimum-stability
For Example
{
"minimum-stability":"dev",
"require":
{
"inwx/domrobot":"dev-master"
}
}
as composer.json works on my machine.
from php-client.
The installation via composer with the composer require inwx/domrobot
command works now.
from php-client.
Yeah indeed , thank you.
Do I need anything else ? require
, use
It is added to teh autolad automatically no ?
from php-client.
I tried :
use INWX\Domrobot;
$robot = new Domrobot();
result:
Class 'INWX\Domrobot' not found
see: https://github.com/JumpLinkNetwork/steps/blob/master/Plugin.php#L7
from php-client.
If you run composer require inwx/domrobot
it should create a line "inwx/domrobot": "^2.4"
in the required path of the composer.json. In your project this is the dev-master branch which also should be ok.
Did some messages appear when you run composer update
? Can you please add a test php file in the root folder of the Project and add the following code:
<?php
include("vendor/autoload.php");
use INWX\Domrobot;
$domrobot = new Domrobot($addr);
var_dump($domrobot);
if the result starts with object(INWX\Domrobot)
the composer installation is ok. In the code also in line 108 a new
is missing before Domrobot().
from php-client.
If you run composer require inwx/domrobot it should create a line "inwx/domrobot": "^2.4" in the required path of the composer.json. In your project this is the dev-master branch which also should be ok.
Thats works.
Did some messages appear when you run composer update?
just fine
unfortunately I can't call my created test.php for some reason :
http://octobercms.site/plugins/jumplink/steps/test.php
Maybe octobercms intercepting it somehow
from php-client.
I managed to get it working, deeper in the Plugin Hirachy.
Looks like the Plugin.php is the wrong place to use vendor libs
from php-client.
still broken :(
from php-client.
Looks like its finding the Class now but I get :
Call to undefined function INWX\xmlrpc_encode_request()
/Applications/AMPPS/www/october/plugins/jumplink/steps/vendor/inwx/domrobot/INWX/Domrobot.php line 100
[edit]
trying to install xmlrpc_encode_request
from php-client.
On ubuntu or general debian based systems you can install it via apt-get
sudo apt-get install php5-xmlrpc
http://php.net/manual/de/xmlrpc.installation.php
from php-client.
I am trying it locally on OSX.
Meanwhile Ive successfully got it running using aamps which included the compiled extension.
$addr = "https://api.ote.domrobot.com/xmlrpc/";
$domrobot = new Domrobot($addr);
var_dump($domrobot);
returns:
object(INWX\Domrobot)#591 (7) { ["debug":"INWX\Domrobot":private]=> bool(false) ["address":"INWX\Domrobot":private]=> string(36) "https://api.ote.domrobot.com/xmlrpc/" ["language":"INWX\Domrobot":private]=> NULL ["customer":"INWX\Domrobot":private]=> bool(false) ["clTRID":"INWX\Domrobot":private]=> NULL ["_ver":"INWX\Domrobot":private]=> string(3) "2.4" ["_cookiefile":"INWX\Domrobot":private]=> string(67) "/private/var/folders/1g/2mhrk9qs52d8dr73f94qdngw0000gn/T/INWx1dhcNq" }
is that ok ?
[EDIT]
SUCCESS!
from php-client.
@Sspssp is there also php7-xmlrpc ?
from php-client.
There is a Package for Debian/Ubuntu Server
http://packages.ubuntu.com/search?suite=xenial§ion=all&arch=any&keywords=php7.0-xmlrpc&searchon=names
https://packages.debian.org/search?searchon=names&keywords=php7.0-xmlrpc
from php-client.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-client.