Giter Club home page Giter Club logo

Comments (9)

weberhofer avatar weberhofer commented on September 27, 2024

Please try it out; I currenlty don't have enough time to test.

from jsonrpcphp.

DavidePastore avatar DavidePastore commented on September 27, 2024

I'm trying to use it.
composer.json:

{
    "name": "davidepastore/jsonrpctest",
    "require": {
        "weberhofer/jsonrpcphp": "2.1-beta1"
    }
}

index.php

<?php
require 'vendor/autoload.php';
$myJSONRPCClient = new \org\jsonrpcphp\JsonRPCClient('http://www.example.com/' );

Error:

Fatal error: Class 'org\jsonrpcphp\JsonRPCClient' not found in C:\xampp\htdocs\jsonrpc\index.php on line 3

from jsonrpcphp.

weberhofer avatar weberhofer commented on September 27, 2024

I have created a beta2 which fixes this issue. Please test.

from jsonrpcphp.

DavidePastore avatar DavidePastore commented on September 27, 2024

Using the same code above (changing the version of jsonrpcphp), it works fine. Good job @weberhofer 🌴

from jsonrpcphp.

weberhofer avatar weberhofer commented on September 27, 2024

fixed with release 2.1.0

from jsonrpcphp.

 avatar commented on September 27, 2024

This issue still exists in 2.1.0. Getting:
PHP Fatal error: Class 'org\\jsonrpcphp\\jsonRPCClient' not found in .....

Tested with: PHP 5.5.9-1ubuntu4.7 and PHP 5.3.10-1ubuntu3.17

from jsonrpcphp.

weberhofer avatar weberhofer commented on September 27, 2024

Can you please test with the latest dev-version? I have made the sources PSR2 compatible and fixed a issue which caused the namespace not to be recognized correctly with some versions of PHP.

from jsonrpcphp.

 avatar commented on September 27, 2024

Mmmm sorry for bothering you.. I've been staring over that little lowercase 'j'....
Cheers,

Bram

from jsonrpcphp.

Jan-E avatar Jan-E commented on September 27, 2024

@brammeleman Curious: did you happen to copy/paste something from https://manual.limesurvey.org/RemoteControl_2_API#PHP_Example

from jsonrpcphp.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.