Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: m0Ray on January 17, 2011, 11:51:43 PM



Title: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: m0Ray on January 17, 2011, 11:51:43 PM
Developed these packages for my projects. May be useful for community.

BitcoinShop can be found on phpclasses (http://www.phpclasses.org/package/6739). It is a collection of PHP5 classes made for (primarily) online shops, social networks and auctions dealing with bitcoin. Controls bitcoind using JSON-RPC and uses accounts API.

Bitcoin module for Drupal (http://samara-lab.ru/bitcoin_api/bitcoin_drupal.tar.bz2) is built on top of these classes and has flexible enough (I hope) settings and security restrictions. Can manage account address book, show transactions a make payments. Payments to local users are forced to be local (using move instead of sendfrom) when possible. Users are not forced to have bitcoin account.
This module will be uploaded to Drupal site (http://drupal.org) after thorough testing.

Bug reports, optimization advices and feature requests are welcome.


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: dduane on January 23, 2011, 01:28:56 AM
Wow, very cool.   Do you have CVS access on Drupal? 

Also, I've created a Bitcoin Address field type for CCK, hope you can use this.  See http://github.com/DarrellDuane/btc-address

I've created a Bitcoin group at  groups.drupal.org but they haven't approved it yet.

Will you be at DrupalCon Chicago?  I will have a Bitcoin BOF there. 

--Darrell


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: LZ on January 23, 2011, 02:54:36 AM
You look almost identical on your photos, guys. :)


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: Anonymous on January 23, 2011, 03:15:06 AM
You look almost identical on your photos, guys. :)

lol.



Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: m0Ray on January 23, 2011, 06:35:35 AM
Wow, very cool.   Do you have CVS access on Drupal? 
No. I applied for it, but they don't like that fact I use my own classes there...

Will you be at DrupalCon Chicago?  I will have a Bitcoin BOF there. 
Don't think so. Too far, too expensive for me. The other side of the world...

You look almost identical on your photos, guys. :)
How can open source programmer live without a beard? ;)


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: dduane on January 28, 2011, 04:33:36 AM
ya, beards are important for FOSS! 

I'd suggest you see what I did with the btc_address module regarding the issue about including classes. 


Also, have you seen mikegogulski's PHP class for bitcoin?  How does it compare to yours?  it'd be great if we could standardize on one library,
and also standardize on one bitcoin module that loads that library, and then for other bitcoin modules, just make them dependent on that module.

btc_address does load the PHP Bitcoin class



Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: dduane on February 19, 2011, 01:05:45 AM

I've started a Drupal/Bitcoin thread at groups.drupal.org, please join us if interested:

http://groups.drupal.org/node/128389


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: tedstein on February 19, 2011, 07:11:38 AM
No. I applied for it, but they don't like that fact I use my own classes there...

Can you explain this? And post a link to your CVS application so that I can comment on it? I want this on drupal.org.

Thanks for the module. I am happy to help with testing and any work that may need to be done on it.


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: tedstein on February 19, 2011, 07:13:13 AM
MoRay,

Are you OK with posting the source code on github so that we can work on it collaboratively, have an issue queue, etc?


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: m0Ray on February 19, 2011, 04:42:48 PM
Yes, but maybe I have to split the code into two repositories: general purpose classes and Drupal module.
What do you think?


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: m0Ray on February 19, 2011, 07:36:06 PM
General purpose classes are now published here: https://github.com/m0Ray/bitcoin_account


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: Satori on January 17, 2012, 10:21:55 PM
Documentation would be good.

Installed the BitCoin module, but hadn't realized there were Classes to install as well.

Where do they like to live?  PHP folder?  Somewhere in Drupal?


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: btc_artist on January 19, 2012, 03:00:24 PM
General purpose classes are now published here: https://github.com/m0Ray/bitcoin_account
That's the same as what you had posted to PHPClasses, right?

Also, thanks, I'll be taking a look at it.  Hopefully it can be a collaborative effort to make a canonical PHP Bitcoin library that can be universally reused.


Title: Re: My PHP5 and Drupal Bitcoin APIs (beta)
Post by: Ferroh on January 20, 2012, 06:53:40 PM
You use one space indentation? ???