Bitcoin Forum
April 23, 2024, 09:16:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: My PHP5 and Drupal Bitcoin APIs (beta)  (Read 3727 times)
m0Ray (OP)
Sr. Member
****
Offline Offline

Activity: 868
Merit: 251


View Profile
January 17, 2011, 11:51:43 PM
Last edit: January 19, 2011, 07:50:47 AM by m0Ray
 #1

Developed these packages for my projects. May be useful for community.

BitcoinShop can be found on phpclasses. 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 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 after thorough testing.

Bug reports, optimization advices and feature requests are welcome.
1713863799
Hero Member
*
Offline Offline

Posts: 1713863799

View Profile Personal Message (Offline)

Ignore
1713863799
Reply with quote  #2

1713863799
Report to moderator
1713863799
Hero Member
*
Offline Offline

Posts: 1713863799

View Profile Personal Message (Offline)

Ignore
1713863799
Reply with quote  #2

1713863799
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713863799
Hero Member
*
Offline Offline

Posts: 1713863799

View Profile Personal Message (Offline)

Ignore
1713863799
Reply with quote  #2

1713863799
Report to moderator
dduane
Newbie
*
Offline Offline

Activity: 47
Merit: 0



View Profile WWW
January 23, 2011, 01:28:56 AM
 #2

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
LZ
Legendary
*
Offline Offline

Activity: 1722
Merit: 1072


P2P Cryptocurrency


View Profile
January 23, 2011, 02:54:36 AM
 #3

You look almost identical on your photos, guys. Smiley

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
Anonymous
Guest

January 23, 2011, 03:15:06 AM
 #4

You look almost identical on your photos, guys. Smiley

lol.

m0Ray (OP)
Sr. Member
****
Offline Offline

Activity: 868
Merit: 251


View Profile
January 23, 2011, 06:35:35 AM
 #5

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. Smiley
How can open source programmer live without a beard? Wink
dduane
Newbie
*
Offline Offline

Activity: 47
Merit: 0



View Profile WWW
January 28, 2011, 04:33:36 AM
 #6

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

dduane
Newbie
*
Offline Offline

Activity: 47
Merit: 0



View Profile WWW
February 19, 2011, 01:05:45 AM
 #7


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

http://groups.drupal.org/node/128389
tedstein
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
February 19, 2011, 07:11:38 AM
 #8

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.
tedstein
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
February 19, 2011, 07:13:13 AM
 #9

MoRay,

Are you OK with posting the source code on github so that we can work on it collaboratively, have an issue queue, etc?
m0Ray (OP)
Sr. Member
****
Offline Offline

Activity: 868
Merit: 251


View Profile
February 19, 2011, 04:42:48 PM
 #10

Yes, but maybe I have to split the code into two repositories: general purpose classes and Drupal module.
What do you think?
m0Ray (OP)
Sr. Member
****
Offline Offline

Activity: 868
Merit: 251


View Profile
February 19, 2011, 07:36:06 PM
 #11

General purpose classes are now published here: https://github.com/m0Ray/bitcoin_account
Satori
Newbie
*
Offline Offline

Activity: 51
Merit: 0



View Profile
January 17, 2012, 10:21:55 PM
 #12

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?
btc_artist
Full Member
***
Offline Offline

Activity: 154
Merit: 101

Bitcoin!


View Profile WWW
January 19, 2012, 03:00:24 PM
 #13

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.

BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf
LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
Ferroh
Member
**
Offline Offline

Activity: 111
Merit: 100



View Profile
January 20, 2012, 06:53:40 PM
 #14

You use one space indentation? Huh
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!