Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: MegaFall on March 31, 2015, 10:01:36 AM



Title: PHP Library
Post by: MegaFall on March 31, 2015, 10:01:36 AM
Would anybody know of a PHP library to create a private key?


Title: Re: PHP Library
Post by: NyeFe on March 31, 2015, 01:34:01 PM
Blockchain has a documentation for php on github https://github.com/blockchain/api-v1-client-php


Title: Re: PHP Library
Post by: coinpr0n on March 31, 2015, 07:29:18 PM
Haven't used PHP in a long time but if you can't find a library you can write (or maybe find on github) a wrapper around bitcoind if that is an option open to you. https://en.bitcoin.it/wiki/PHP_developer_intro


Title: Re: PHP Library
Post by: cr1776 on March 31, 2015, 09:02:18 PM
One of the following might do what you are looking for.  I played with them previously, but not recently, just to see how they functioned.  As I recall, they seemed to do what you were looking for.  ;-)

https://github.com/Bit-Wasp/bitcoin-lib-php

https://github.com/zamgo/PHPCoinAddress

http://www.unibia.com/unibianet/developer/php-ecc-class-library


Title: Re: PHP Library
Post by: emrebey on April 03, 2015, 12:29:32 PM
for creating addresses (and private keys of them ofc.) you can use bitcoin daemon.

see API reference:
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)


Title: Re: PHP Library
Post by: bitpop on April 09, 2015, 10:37:52 PM
https://github.com/FuzzyBearBTC/PHPCoinAddress


Title: Re: PHP Library
Post by: coinableS on April 09, 2015, 11:28:26 PM
https://github.com/FuzzyBearBTC/PHPCoinAddress

HOly schmokes! This worked so easily  :o

Already includes the ECC library and only needs GMP extension. Fired off a test run and violla a fresh key pair!


Title: Re: PHP Library
Post by: coinpr0n on April 10, 2015, 07:11:26 AM
https://github.com/FuzzyBearBTC/PHPCoinAddress

HOly schmokes! This worked so easily  :o

Already includes the ECC library and only needs GMP extension. Fired off a test run and violla a fresh key pair!

Good to know, I'll bookmark this for my next PHP project.


Title: Re: PHP Library
Post by: Bitcoin_BOy$ on April 10, 2015, 03:31:01 PM
This will be the best for you  8) : https://github.com/Bit-Wasp/bitcoin-lib-php [already posted , I suggest it more than others]
it contain many bitcoin library such :

Quote
Raw Transactions: create, sign, validate, with support for P2SH.
Create multi-signature addresses, create redeeming transactions.
BIP32: Functions for generating BIP32 deterministic keys.
Electrum: Create seed from mnemonic, create MPK from seed, derive public keys from MPK, or private keys from seed.
BitcoinLib: The core class, with key functionality, encoding/decoding & validation functions, etc.
BIP39: Functions for generating Mnemonic code for generating deterministic keys (possibly password protected)

Kind Of Respect,
Bitcoin Boy.


Title: Re: PHP Library
Post by: MegaFall on April 10, 2015, 03:55:56 PM
Thanks guys. Great collection of resources here; but I decided to do what I'm looking to do in C++ instead. It'll run much faster in C++.