Download the PHP package hejunjie/wechat-bill-parser without Composer

On this page you can find all versions of the php package hejunjie/wechat-bill-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wechat-bill-parser

hejunjie/wechat-bill-parser

English | 简体中文

[!WARNING] This project is for learning and communication purposes only. Commercial or illegal use is strictly prohibited.

A PHP library for automated WeChat bill parsing: cracks ZIP archive passwords and extracts bill data from Excel files. Ideal for personal finance tracking, automated bookkeeping, and financial tool development.

Want a quick overview? The codebase has been parsed by Zread.

Features

Requirements

Install System Dependencies

Ubuntu / Debian:

macOS (Homebrew):

[!NOTE] macOS ships with gcc (actually clang), no extra install needed. Windows users can use this library via WSL.

Installation

On first run, the library automatically compiles the C-based password cracker. Make sure gcc and libzip are properly installed.

Quick Start

Only implement the callbacks you need. For example, if you only care about the password, just set onPasswordFound and leave onDataParsed unset.

Output Structure

The $data array passed to the onDataParsed callback has the following structure:

Project Structure

FAQ

What if password cracking fails? WeChat bill ZIP passwords are typically 6-digit numbers. The cracker iterates through common password patterns. If cracking fails, make sure the ZIP file is not corrupted and is indeed a WeChat-exported bill file.
Does it support Alipay bills? Alipay bill parsing is available in a separate repository: [php-alipay-bill-parser](https://github.com/zxc7563598/php-alipay-bill-parser).

Motivation

I keep track of my personal finances, but the bill formats exported by WeChat and Alipay are inconsistent and often arrive as encrypted ZIP archives. Manually exporting, extracting, and organizing these bills every time was tedious, so I built this tool to:

Contact

Questions or suggestions? Feel free to open a GitHub Issue.


All versions of wechat-bill-parser with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
phpoffice/phpspreadsheet Version ^5.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hejunjie/wechat-bill-parser contains the following files

Loading the files please wait ...