Code Monkey home page Code Monkey logo

Comments (14)

wolfy-j avatar wolfy-j commented on May 18, 2024 8

You are not able to pass more than one request through the WP. Since WP treats the request as a global instance it will cache its values inside the config and other functions. This makes impossible to reuse already initiated application. This is caused by the fact that WP does not use any request/response abstraction.

from roadrunner.

dac514 avatar dac514 commented on May 18, 2024 5

Someone got it running under Swoole.
README in Wordpress-PSR/swoole explains ideas that could (maybe) work for Roadrunner.
Non-trivial, experimental.

from roadrunner.

wolfy-j avatar wolfy-j commented on May 18, 2024 2

RoadRunner is not only a web server but an application server. This means you can move some of your functionality to golang and still serve the app using the classing PHP-FPM method.

In this case, it makes sense to move Blockchain communication methods to Golang.

On another end, RoadRunner does not require PSR-7 (you can use low-level HTTP protocol instead).
But it does require your application to be capable of running in stateless mode. Unfortunately, WordPress did everything it can to build architecture incapable of running in stateless mode.

from roadrunner.

Alex-Bond avatar Alex-Bond commented on May 18, 2024

Hey!

I don't think its possible to run WP behind RR. You need PSR7 compatible system.

About PHP installation - it can be any PHP version. As long as it runs from the console.

from roadrunner.

Gelembjuk avatar Gelembjuk commented on May 18, 2024

Ok. So it is not just for any PHP app. But for PSR7 .
I think this will not work for me.
Thank you.

from roadrunner.

nvtv15 avatar nvtv15 commented on May 18, 2024

Wordpress works with mysql ok. There is a lot of plugin for example,woocommerce or other similar ( mycred https://wordpress.org/plugins/mycred/ ) plugin saves transactions in mysql. Is it possible to use part with this db, that tables carrying transactions from mysql partly go into blockchain?

from roadrunner.

wolfy-j avatar wolfy-j commented on May 18, 2024

If you are talking about Golang to PHP SDK to communicate with blockchain - yes, it is possible.

from roadrunner.

nvtv15 avatar nvtv15 commented on May 18, 2024

If you are talking about Golang to PHP SDK to communicate with blockchain - yes, it is possible.
My site galonet.eu/wallet. It's a little harder to sign in because I put in double e-mail because of spammers. When you first sign up you get 8000 dolars, there are options to send to another user. I'd like to put that transaction in the blockchain.

from roadrunner.

wolfy-j avatar wolfy-j commented on May 18, 2024

You can implement it using Golang SDK, there are examples in roadrunner docs how to create your own service.

from roadrunner.

lkraav avatar lkraav commented on May 18, 2024

I don't think its possible to run WP behind RR. You need PSR7 compatible system.

...

Wordpress works with mysql ok.

I'm confused - RR does or does not require a strictly PSR7-compatible app, or can you run any PHP script with it?

from roadrunner.

lkraav avatar lkraav commented on May 18, 2024

Unfortunately, WordPress did everything it can to build architecture incapable of running in stateless mode.

I am not sure I understand. WP's only "state" mechanism is cookies. It doesn't use sessions, or anything else. How is this "incapable of running in stateless mode" claim determined?

from roadrunner.

rustatian avatar rustatian commented on May 18, 2024

Closing, because #64 (comment).

from roadrunner.

itorz7 avatar itorz7 commented on May 18, 2024

Is it available now ??

from roadrunner.

rustatian avatar rustatian commented on May 18, 2024

Is it available now ??

No, see comments above.

from roadrunner.

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.