jskarpe / mogilefs-php-model Goto Github PK
View Code? Open in Web Editor NEWModel representation of a file inside MogileFS, complete with mapper and adapters for save, find and delete
Model representation of a file inside MogileFS, complete with mapper and adapters for save, find and delete
Your config set up is throwing an error
yuav/mogilefs/src/MogileFS/File/Mapper/Adapter/Tracker.php
Line 355
The foreach loop never sets any of the config items.
`
foreach ($options['tracker'] as $host) {
$parts = parse_url($host);
if (!isset($parts['port'])) {
$parts['port'] = 7001;
}
$errno = null;
$errstr = null;
$requestTimeout = isset($options['request_timeout']) ? $options['request_timeout'] : null;
$this->_socket = fsockopen($parts['host'], $parts['port'], $errno, $errstr, $requestTimeout);
if ($this->_socket) {
break;
}
}
`
Hi @yuav
I just found your library and even though I didn't read through the whole code line by line it seems you have some nice stuff going on here.
I've recently been working a little bit with this another library called Gaufrette originally made by good people at KnpLabs. It's a filesystem abstraction library that aims to implement most of the popular filesystems under a consistent API. People from my company also wrote an initial version of MogileFS adapter for it but, to be honest, it could be a bit better.
So what I'm asking is that would you be interested in contributing your MogileFS implementation for Gaufrette. Why? I guess PHP community would benefit more from one very good, well tested and stabile filesystem abstraction library than from many small libraries.
So, anyway, I'm not an owner of Gaufrette project, so I can make no promises about anything. But I know good ideas and implementations are well taken over there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.