zulfadliresources/myinvois
Composer 安装命令:
composer require zulfadliresources/myinvois
包简介
A comprehensive PHP SDK for integrating with Malaysia's LHDN (Lembaga Hasil Dalam Negeri) MyInvois e-invoicing system. This SDK simplifies the process of submitting, validating, and managing electronic invoices in compliance with Malaysian tax regulations.
README 文档
README
A comprehensive PHP SDK for integrating with Malaysia's LHDN (Lembaga Hasil Dalam Negeri) MyInvois e-invoicing system. This SDK simplifies the process of submitting, validating, and managing electronic invoices in compliance with Malaysian tax regulations.
Features
- Document Management: Create, submit, and retrieve e-invoices, credit notes, debit notes, and other UBL 2.1 compliant documents
- Validation: Built-in validation for document structure and data integrity
- API Integration: Seamless integration with MyInvois API endpoints for production and sandbox environments
- Taxpayer Services: Query taxpayer information and manage registrations
- Notification Handling: Process and respond to system notifications
- Identity Services: Handle authentication and authorization
- XML/JSON Serialization: Automatic conversion between PHP objects and UBL XML/JSON formats
- Error Handling: Comprehensive error handling with detailed messages
- Type Safety: Full PHP 8.3 support with strict typing
Requirements
- PHP >= 8.3
- Composer
- Valid MyInvois API credentials (Client ID, Client Secret, etc.)
Installation
Install via Composer:
composer require zulfadliresources/myinvois
Quick Start
use MyInvois\MyInvoisClient; $config = [ 'apiKey' => 'your-api-key', 'clientId' => 'your-client-id', 'clientSecret' => 'your-client-secret', 'production' => false, // Set to true for production ]; $client = new MyInvoisClient($config); // Create and submit an invoice $invoice = new Invoice(); // ... configure invoice ... $submission = $client->getDocumentSubmissionService()->submit($invoice);
Documentation
For detailed SDK documentation, including:
- Complete API reference
- Integration guides
- Code examples
- UBL specifications
- Troubleshooting
See docs/MyInvois_SDK_Summary.md.
Testing
Run the test suite with PHPUnit:
composer install vendor/bin/phpunit
Contributing
We welcome contributions! Please see our contributing guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
For major changes, please open an issue first to discuss the proposed changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Issues: Report bugs and request features via GitHub Issues
- Discussions: Join community discussions on GitHub Discussions
- LHDN MyInvois: Official documentation at MyInvois Portal
Disclaimer
This SDK is not officially affiliated with LHDN Malaysia. Use at your own risk and ensure compliance with current regulations.
zulfadliresources/myinvois 适用场景与选型建议
zulfadliresources/myinvois 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 zulfadliresources/myinvois 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zulfadliresources/myinvois 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-16