Giter Site home page Giter Site logo

Comments (6)

digitalkaoz avatar digitalkaoz commented on July 28, 2024

are you using php 5.3? and what is require_once('Constraint.php');? you should use the autoloader...

from json-schema.

roydekleijn avatar roydekleijn commented on July 28, 2024

ok thanks!
Is it better to read the Schema from an .json file or an internal variable ?

from json-schema.

justinrainbow avatar justinrainbow commented on July 28, 2024

Either way is fine. Just depends on how you want to organize your code.

from json-schema.

Asmabulb avatar Asmabulb commented on July 28, 2024

Hi,

I 've just installed this package

I'm having the same error in the test example given :

PHP Fatal error: Class 'JsonSchema\Validator' not found in

I'm using PHP 5.4.9

Thanks

from json-schema.

justinrainbow avatar justinrainbow commented on July 28, 2024

Did you use Composer for the installation? All of the JsonSchema classes are meant to be loaded via an autoloader, not directly with a require or include statement.

from json-schema.

Asmabulb avatar Asmabulb commented on July 28, 2024

Hi, thanks for the quick response,

I didnt use composer, i did just git

What should i do then ?

Sent from my iPad

On 28 Nov 2012, at 16:44, Justin Rainbow [email protected] wrote:

Did you use Composer for the installation? All of the JsonSchema classes are meant to be loaded via an autoloader, not directly with a require or include statement.


Reply to this email directly or view it on GitHub.

from json-schema.

Related Issues (20)

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.