Download the PHP package devtally/tally-xml without Composer
On this page you can find all versions of the php package devtally/tally-xml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devtally/tally-xml
More information about devtally/tally-xml
Files in devtally/tally-xml
Package tally-xml
Short Description Convert JSON data to Tally-compatible XML for direct import into Tally
License MIT
Informations about the package tally-xml
Tally XML Converter
Convert JSON data to Tally-compatible XML for direct import into Tally ERP. Comprehensive support for vouchers, master data, GST, inventory, and more.
Installation
Install via Composer:
Features
- 🔄 JSON to Tally XML Conversion - Direct conversion from your JSON data
- 📝 Fluent Builder Pattern - Easy, readable code with method chaining
- 💼 Master Data Support - Create ledgers, stock items, and units
- 📊 Complete Voucher Support - Sales, Purchase, Payment, Receipt, Returns
- 💰 GST Ready - Full GST support with automatic CGST/SGST/IGST handling
- 📦 Inventory Management - Stock items with batch allocation
- ✅ Well Tested - Comprehensive test suite
- 🎯 Simple API - Intuitive and easy to use
Quick Start
Convert JSON to Tally XML
The easiest way to get started is using the JSON converters:
Usage Guide
1. Master Data - Create Ledgers
Other Ledger Types:
2. Master Data - Create Stock Items
3. Master Data - Create Units
4. Create Vouchers - Sales Invoice
5. Create Vouchers - Purchase
6. Create Vouchers - Payment
7. Create Vouchers - Sale Return
Complete JSON Structure Examples
Purchase Voucher JSON
Master Data JSON
Supported Voucher Types
- Sale / Sales - Sales invoices
- Purchase - Purchase invoices
- Sale Return - Sales returns/credit notes
- Purchase Return - Purchase returns/debit notes
- Payment - Payment vouchers
- Receipt - Receipt vouchers
- Journal - Journal entries
- Contra - Contra entries
GST Support
The package automatically handles:
- ✅ CGST/SGST split for intra-state transactions
- ✅ IGST for inter-state transactions
- ✅ GST registration types (Regular/Unregistered/Consumer)
- ✅ GSTIN validation format
- ✅ Place of supply
- ✅ HSN codes for stock items
Date Formats
Tally uses YYYYMMDD format. The package automatically converts:
'2024-01-15'→'20240115''15-01-2024'→'20240115'- Any PHP
strtotime()compatible format
Testing
Run the test suite:
Requirements
- PHP 7.4 or higher
- ext-dom (usually included by default)
Examples Directory
Check the examples/ directory for more complete working examples:
- Creating master data
- Sales/Purchase vouchers with GST
- Payment/Receipt vouchers
- Batch imports
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
Support
If you encounter any issues or have questions:
- Check the examples directory
- Review the tests for usage patterns
- Open an issue on GitHub
Changelog
Version 2.0.0 (Enhanced)
- ✨ Added comprehensive master data builders (Ledger, StockItem, Unit)
- ✨ Enhanced VoucherBuilder with full GST support
- ✨ Added JSON to XML converters for direct integration
- ✨ Support for inventory items with batch allocation
- ✨ Tax entries, additional charges, and round-off support
- ✨ Sale Return and Purchase Return voucher types
- ✨ Automatic debit/credit calculation based on voucher type
- 📚 Comprehensive documentation and examples
Version 1.0.0
- Initial release with basic converter and voucher builder