Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tu6ge/phpp
phpp is composer replacement
https://github.com/tu6ge/phpp
composer
Last synced: 25 days ago
JSON representation
phpp is composer replacement
- Host: GitHub
- URL: https://github.com/tu6ge/phpp
- Owner: tu6ge
- Created: 2024-06-02T06:57:21.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-19T06:19:31.000Z (about 2 months ago)
- Last Synced: 2024-09-30T22:40:57.166Z (about 1 month ago)
- Topics: composer
- Language: Rust
- Homepage:
- Size: 223 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# phpp is composer replacement, writed by rust
*Developing! Dont used production*
Support subcommand :
- require
- install
- remove
- clear
- dump-autoload
- search
- config set repo## Usage
1. clone the repository
```
git clone [email protected]:tu6ge/phpp.git
```2. Run composer command (install package)
```
cargo run require guzzlehttp/guzzle
```## Bench
```
hyperfine 'cd run_phpp && ./phpp require guzzlehttp/guzzle' 'cd run_composer && composer require guzzlehttp/guzzle'
```
1. no file cache
```
Benchmark 1: cd run_phpp && ./phpp require guzzlehttp/guzzle
Time (mean ± σ): 1.675 s ± 5.043 s [User: 0.052 s, System: 0.038 s]
Range (min … max): 0.069 s … 16.028 s 10 runsBenchmark 2: cd run_composer && composer require guzzlehttp/guzzle
Time (mean ± σ): 4.608 s ± 0.886 s [User: 0.428 s, System: 0.090 s]
Range (min … max): 3.593 s … 6.553 s 10 runs
```
2. have file cache```
Benchmark 1: cd run_phpp && ./phpp require guzzlehttp/guzzle
Time (mean ± σ): 80.0 ms ± 24.5 ms [User: 38.5 ms, System: 27.9 ms]
Range (min … max): 66.9 ms … 170.7 ms 17 runsBenchmark 2: cd run_composer && composer require guzzlehttp/guzzle
Time (mean ± σ): 5.095 s ± 0.869 s [User: 0.386 s, System: 0.077 s]
Range (min … max): 4.317 s … 6.688 s 10 runs
```