Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bethropolis/tinyproxy
A lightweight PHP proxy service with caching for fetching and serving web resources.
https://github.com/bethropolis/tinyproxy
curl guzzle guzzlehttp offline-browsing php proxy proxy-server
Last synced: about 3 hours ago
JSON representation
A lightweight PHP proxy service with caching for fetching and serving web resources.
- Host: GitHub
- URL: https://github.com/bethropolis/tinyproxy
- Owner: bethropolis
- License: mit
- Created: 2023-08-28T20:55:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-28T18:47:03.000Z (2 months ago)
- Last Synced: 2024-08-28T20:32:09.114Z (2 months ago)
- Topics: curl, guzzle, guzzlehttp, offline-browsing, php, proxy, proxy-server
- Language: PHP
- Homepage: https://bethropolis.github.io/tinyproxy/
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TinyProxy
tinyproxy is a lightweight PHP proxy service with caching for fetching and serving web resources.
screenshots:
![Screenshot 2023-09-03 00 00 25](https://github.com/bethropolis/tinyproxy/assets/66518866/7acd4764-25a7-407e-967e-d193d8165672)![Screenshot 2023-09-03 00 06 26](https://github.com/bethropolis/tinyproxy/assets/66518866/1fef1996-e96e-41f1-95dd-7f7eae89ce1c)
## Installation
1. Clone this repository to your web server:
```sh
git clone https://github.com/bethropolis/tinyproxy.gitcd tinyproxy
```2. Install the required dependencies using Composer:
```
composer install
```
3. Run the TinyProxy service:
```
php -S localhost:8080
```
> I recommend using an `apache` server or `nginx` server.using docker:
```
docker build -t tinyproxy .
docker run -p 8080:80 --name tinyproxy-container tinyproxy
```## Usage
To use TinyProxy, simply make requests to the proxy URL with the `url` parameter:
```
http://localhost:8080/?url=https://www.example.com
```
curl:
```bash
$ curl http://localhost:8080/?url=https://www.example.com
```
> replace `localhost:8080` with your web server's address.#### parameters
| parameter | description | type |
| --------- | ------------- |-------|
| `url` | The URL to proxy. |string |
| `cache` | The cache directory. |bool|> for more customization edit the `config.php` file.
## Contributing
Contributions are welcome! If you find a bug or have an enhancement idea, please open an issue or submit a pull request.
## License
TinyProxy is released under the MIT License. See [LICENSE](LICENSE) for details.
Happy proxying! 💜