Giter Site home page Giter Site logo

Comments (6)

Sean-Der avatar Sean-Der commented on August 18, 2024

Hey @UweKeim

msgpack-php is a module, so it will have to be compiled. If you know the target environment you could include the msgpack.so and you only have to compile it once per environment.

Could you include msgpack-php is a submodule, and then compile it on the target host? You will need the PHP headers + a C compiler, but that means you at least will not need root access (to install it) you can then just have your PHP script include the module.

There are a bunch of ways to solve this problem, but the short answer is no. If you are doing a wide release and don't know all the target environments there is not going to be a way to do this without having the end user compile/install the module.

from msgpack-php.

UweKeim avatar UweKeim commented on August 18, 2024

Thanks a lot, @Sean-Der — that's what I feared to hear 😉

Maybe someone someday will implement a pure-PHP solution, without any dependencies, even if it is a bit slower than the current C implementation.

(Just like e.g. this pure-PHP ZIP implementation)

Thanks again for your fast reply.

from msgpack-php.

rybakit avatar rybakit commented on August 18, 2024

@UweKeim There is already a number of pure php implementations available (I also created one by myself, but didn't opensource it yet).

from msgpack-php.

UweKeim avatar UweKeim commented on August 18, 2024

Awesome! Thanks a log, @rybakit!

from msgpack-php.

rybakit avatar rybakit commented on August 18, 2024

@UweKeim If you still have interest in a pure php library, take a look at msgpack.php which I've just released.

from msgpack-php.

UweKeim avatar UweKeim commented on August 18, 2024

Thank you very much, @rybakit

from msgpack-php.

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.