Hey fellow Bitcoin devs,
I’ve put together an upgraded version of the well-known EasyBitcoin-PHP library that fixes some major bugs while keeping it fully compatible with older versions. The original library by aceat64 has been essential in the PHP Bitcoin space, but it had some issues with newer PHP versions and Bitcoin Core.
Here’s what’s in v1.1:
✅ Fixed that annoying "line 187 error" Improved handling for null responses
✅ Better JSON parsing Added error checks for bad responses
✅ Enhanced cURL setup Improved timeout and connection handling
✅ Compatibility with modern PHP Works with PHP 7.4+ and PHP 8.x
✅ Improved SSL support Better handling for HTTPS connections
✅ Detailed error reporting More informative error messages
Here’s what’s new in v1.2:
✅ NEW: Batch/Async processing Run multiple RPC calls at once
✅ No outside dependencies Just pure PHP with native cURL multi support
🚀 NEW FEATURE: Batch Processing (v1.2)
The standout feature here is the built-in batch processing which allows multiple RPC calls to run at the same time, giving a huge boost in performance:
Performance Gains:
- 5 RPC calls: 5x quicker (5 seconds → 1 second)
- 10 RPC calls: 6.7x quicker (10 seconds → 1.5 seconds)
- 20 RPC calls: 10x quicker (20 seconds → 2 seconds)
Super useful for:
- Analyzing blockchain (multiple blocks)
- Checking transaction statuses
- Wallet batch tasks
- Monitoring system dashboards
Key Enhancements:
1. JSON Response Handling
The old library could fail if json_decode() returned null. The new version includes proper error checks for JSON issues:
2. Enhan
Updated EasyBitcoin-PHP New Version with Fixes
3 replies 496 views
Nice work! Got a little nostalgic checking out the Github repo, as I used to toy with EasyBitcoin-PHP a long time ago.
I always liked how it didn't require that composer crap, just dead simple to include in projects.
paul.ninjaFull Member
Posts: 152 · Reputation: 539
#3Jan 23, 2025, 01:05 PM
Big thumbs up for keeping the classic EasyBitcoin-PHP alive while fixing the "line 197" json_decode PTSD. Lots of legacy stacks still lean on this one-file lib.
MAJOR UPDATE: EasyBitcoin-PHP Enhanced v1.2 Released!
Fellow Bitcoin developers!
I'm thrilled to announce the release of EasyBitcoin-PHP Enhanced v1.2 - the most significant update yet to this beloved library! After months of development, I've added the most requested feature: native batch processing!
🔥 What I've Built:
Batch Processing - Execute multiple RPC calls in parallel using native PHP cURL multiPerformance boost up to 10x faster - From 20 seconds down to 2 seconds for 20 calls!Zero external dependencies - Pure PHP, no Composer neededExtended PHP compatibility - Works from PHP 5.3+ through PHP 8.3+Drop-in replacement - Your existing code works unchanged
💡 Why This Changes Everything:
Before, you had to wait for each RPC call sequentially. Now you can do this:
🎯 Perfect For:
Blockchain analysis (processing multiple blocks simultaneously)Transaction monitoring dashboardsWallet batch operationsSystem health monitoringAny app requiring multiple Bitcoin RPC calls
📊 Performance Gains:
5 RPC calls: 5x faster (5 seconds → 1 second)10 RPC calls: 6.7x faster (10 seconds → 1.5 seconds)20 RPC calls: 10x faster (20 seconds → 2 seconds)
✅ Maintains Original Philosophy:
Single file - just require_once('easybitcoin.php');No external dependencies or ComposerSame simple API you know and loveWorks on any hosting environmentBackward compatible with existing code
🔧 Real-World Example:
🌐 Extended Compatibility:
Tested extensively with:
PHP versions: 5.3, 5.6, 7.4, 8.0, 8.1, 8.2, 8.3+Bitcoin Core: 22.0+, 24.0+, 25.0+, 26.0+, 27.0+Altcoins: Litecoin, Dogecoin, Bitcoin Cash, and more
📥 DOWNLOAD & MIGRATION
Migration is dead simple:
1. Replace your existing easybitcoin.php file
2. Your existing code continues working unchanged
3. Optionally upgrade to batch processing for massive speed gains
Credits: Built on the original EasyBitcoin-PHP by aceat64. All credit for the original concept goes to the original author. This enhancement keeps the library alive and adds professional-grade performance.
Download now and make your Bitcoin applications lightning fast! ⚡
#Bitcoin #PHP #Performance #OpenSource #RPC #Blockchain
Happy coding with faster Bitcoin RPC calls! 🧡
?Reply
Sign in to reply to this topic
Related topics
- Bitcoin Core displaying coins (UTXOs) in a new tab 13
- New Optional Hourglass Implementation is Live 3
- Are you in favor of BIP-110? Let's get a Bitcoin poll going. 0
- Erlay seems to have some issues here’s a better proposal for a bitcoin protocol without invites 3
- Ways to earn some sats by contributing to bitcoin core development 5
- Exploring the Potential and Challenges of a Kardashev-Scale Bitcoin Network 3