Code Monkey home page Code Monkey logo

php-node-bootstrap's Introduction

php-node-bootstrap

PHP Node.js Bootstrap is an experiment released pre-maturely. The result is an easily deployable (drag and drop) JavaScript application by use of PHP. Essentially, we can leverage PHP process and socket functions to spawn a Node.js process that runs your main script. First, we check if your Node.js daemon is running, and if it is not, then spawn one. Then, we send the request to your Node.j script, and feed the content back through PHP. This has obvious downsides, primarily that you've increased your request overhead dramatically by use of an additional service, and PHP to boot (pun intended).

Disclaimer

I'm not entirely sure this will work on all environments. I know for certain it won't work on most shared hosting providers due to security and therefore limited function availability. I've included binaries for Linux, Windows, and Mac OS X. However, there is no working NPM implementation. I'm not sure I'd use this, and haven't warranted any time towards that.

I'm releasing it because I have no use for it and it may save someone who had a similar idea some time :D

php-node-bootstrap's People

Stargazers

Andrei Oprisan avatar thinkphper avatar HighRuned avatar

Forkers

bodoh

php-node-bootstrap's Issues

NPM support

Perhaps setup API services on unix, darwin, windows that listen for npm requests, run make/make install/send back binary.

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.