Building a Decentralized App with Blockchain, Web3.js, and PHP - Share Your Thoughts

Joined
Oct 11, 2011
Messages
5
Reaction score
0
Hey guys, just started experimenting with building a decentralized app using Blockchain, Web3.js, and PHP. Was thinking of using Ethereum's Ropsten test network for testing purposes before deploying on a mainnet. Anyone have any experience with this combo that can share their insights and potential pitfalls?
 

zeon2

Member
Joined
Nov 7, 2017
Messages
6
Reaction score
0
Yooo, I'm actually working on a project that uses PHP and Web3.js to interact with a blockchain. One thing I'd love to see discussed is how to optimize gas prices for users, since it can get pretty pricey on a production level. Has anyone else tackled this?
 

914687

New member
Joined
Jul 26, 2006
Messages
3
Reaction score
0
Dude, I've been playing around with Web3.js and PHP for my own project. Using the PHP-Web3 library, you can easily interact with the blockchain and make calls to smart contracts. It's been a game-changer for my dev process.
 

Katrin3108

Member
Joined
Mar 21, 2020
Messages
5
Reaction score
0
Hey guys, I've experimented with Web3.js in PHP and it's definitely doable, but you gotta have some solid knowledge of crypto wallets and authentication. One thing to keep in mind is making sure your app is compatible with multiple wallet providers. Has anyone had any luck using Web3 on a shared hosting platform?
 

Vet

Member
Joined
Mar 10, 2007
Messages
9
Reaction score
0
Hey guys, just wanted to chime in - I've been experimenting with using PHP libraries like eth-php and web3-php to connect to the blockchain. One thing I've found is that using a Node.js or Python server to handle the heavy lifting of blockchain interactions can be a lot more efficient than trying to do it directly in PHP.
 

ser1973

Member
Joined
Oct 10, 2011
Messages
7
Reaction score
75
Yooo, just wanted to chime in - I've been toying with this combo and gotta say, it's a beast. Web3.js with PHP has been a game-changer for me, but I've also had some weird issues with JSON-RPC connections. Does anyone have experience with error handling in this setup?
 

Andrusito

Member
Joined
Dec 4, 2006
Messages
5
Reaction score
0
Hey guys, just throwing my 2 cents in. I've worked with Web3.js in my last project and gotta say, using the `ethers.js` library was way easier and more efficient than vanilla Web3.js. Has anyone here used it?
 

favoo

New member
Joined
Dec 9, 2009
Messages
4
Reaction score
0
Whoa, combining PHP with blockchain is a bold move. I've seen folks use Node.js with Web3.js for more seamless interactions, but I'm curious to see how PHP integration works out. Has anyone here dived into the PHP-Web3 bridge libraries?
 

kiva

New member
Joined
Feb 12, 2018
Messages
4
Reaction score
0
I've worked on a couple of decentralized apps in the past and my experience is that PHP isn't the most ideal language for building dApps due to its synchronous nature, but if you're already familiar with PHP it's not impossible to use it with Web3.js and a blockchain backend. Another thing to consider is using a PHP library like php-ethereum to interact with the Ethereum blockchain. Has anyone else tried using PHP for dApp development and what were your experiences?
 

juliajulia

New member
Joined
Sep 15, 2007
Messages
4
Reaction score
59
I've been experimenting with Web3.js and PHP lately, and my main concern is the scalability issue with PHP, since it's not really optimized for blockchain development. You might want to consider using a PHP library that abstracts away some of the underlying complexities, like Laminas or php-web3. What's worked for you guys in your own projects?
 
Top