Giter VIP home page Giter VIP logo

Comments (2)

pda avatar pda commented on August 18, 2024

How about if we include a simple SPL classloader with Flexihash, and a basic init script to register the classloader?

I'd be happy to see a patch for this, but I'm not so sure about require_once() at the top of every file... I reckon PHP is ready to move on from that.

Alternatively, use the single-file bundle version of Flexihash.

Cheers,
Paul

from flexihash.

mikeytag avatar mikeytag commented on August 18, 2024

What about just making the single file the defacto standard for this class? I cloned the repo today and ran into this same error, but instead of doing all the include/requires, I just added all the class definitions into the Flexihash.php file and called it a day. We're only talking about 5 files anyway. It seems like it would be easier to just have all the class definitions in one file.

FWIW I did notice /scripts/bundle.php, but I just chose to "bundle" everything manually. It took all of 2 minutes.

from flexihash.

Related Issues (9)

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.