Bitcoin Forum

Bitcoin => Project Development => Topic started by: robert4u on June 12, 2017, 01:52:36 AM



Title: PHP create bitcoin address
Post by: robert4u on June 12, 2017, 01:52:36 AM
Can you people guide me how can I create bitcoin address in php?


Title: Re: PHP create bitcoin address
Post by: vh on June 12, 2017, 03:06:44 AM
Check out the Bit-Wasp library from https://github.com/Bit-Wasp/bitcoin-php.
The Factory class BitWasp\Bitcoin\Key\PrivateKeyFactory should get you there.


Title: Re: PHP create bitcoin address
Post by: ImHash on June 12, 2017, 05:46:25 AM
Can you people guide me how can I create bitcoin address in php?
What is the reason that you'd like to generate addresses using PHP? do you think it'll make any difference if you download HTML and run it locally on your browser like downloading this one address generator (https://github.com/cantonbecker/bitcoinpaperwallet) which is a fork of bitaddress.org?


Title: Re: PHP create bitcoin address
Post by: judgecrypto on June 12, 2017, 07:51:04 AM
Can you people guide me how can I create bitcoin address in php?

I am having a feeling that you need to ingrate btc payment gateway into your website unless you tell us what you need it for ?

You can find a lot of bitcoin address in php codes at https://blockchain.info/api

Best of luck.


Title: Re: PHP create bitcoin address
Post by: boy130 on June 12, 2017, 07:35:07 PM
For creating bitcoin address with PHP you can use 2 ways:

1 way (easy) is to use API's from 3rd wallet providers like blocktrail.com (http://blocktrail.com) etc.

2 way (hard) is to install bitcoin node on your VPS and use any PHP RPC client for managing it.

I recommend first way if you are new in bitcoin, php, server configuration etc.


Title: Re: PHP create bitcoin address
Post by: hamburger on June 14, 2017, 03:39:38 PM
Can you people guide me how can I create bitcoin address in php?

You can use this as a starting point;

https://github.com/shayanb/Bitcoin-PoS-PHP


Title: Re: PHP create bitcoin address
Post by: robert4u on June 29, 2017, 04:34:25 PM
Thank you guys for all the inputs, I will definitely try them.