Comments (2)
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.
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)
- Create a composer package HOT 4
- Port tests to PHPUnit, currently SimpleTest. HOT 1
- PSR-4 autoloader HOT 1
- Versioning, SemVer, tags, CHANGELOG HOT 7
- Using MD5Hasher with large server pool breaks correctness of algorithm HOT 4
- Use binary search for initial target lookup HOT 4
- Use with redis for sharding
- Consistent hashing question HOT 5
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 flexihash.