https://github.com/sof3/phar.rs
Rust library for PHP phar format
https://github.com/sof3/phar.rs
Last synced: 5 months ago
JSON representation
Rust library for PHP phar format
- Host: GitHub
- URL: https://github.com/sof3/phar.rs
- Owner: SOF3
- License: apache-2.0
- Created: 2020-04-26T07:45:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-23T20:10:49.000Z (almost 2 years ago)
- Last Synced: 2025-06-02T15:44:13.003Z (7 months ago)
- Language: Rust
- Homepage: https://docs.rs/phar
- Size: 33 MB
- Stars: 26
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phar.rs
[](https://github.com/SOF3/phar.rs/actions?query=workflow%3ACI)
[](https://crates.io/crates/phar)
[](https://crates.io/crates/phar)
[](https://docs.rs/phar)
[](https://github.com/SOF3/phar)
Rust library for PHP phar format.
See the [tests/reader.rs](./tests/reader.rs) and [tests/writer.rs](./tests/writer.rs) directory for example code.
## Web
[](https://github.com/SOF3/phar.rs/actions/workflows/page.yml)
[](https://sof3.github.io/phar.rs)
As a proof of concept, phar.rs is used to create a light webapp to view phar files from file upload.
### Building
Prerequisites:
- Rust default toolchain (1.57.0 stable, probably works with earlier versions too)
- Trunk (`cargo install trunk`)
To build the site, simply `cd web` and run `trunk build trunk-dev.html` for unoptimized build,
or `trunk build trunk-release.html`.
See https://trunkrs.dev for more information.
## CLI
W.I.P.