PHPackages                             stilliard/ditto.php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. stilliard/ditto.php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stilliard/ditto.php
===================

Web Proxy that handles all asset and link replacements to keep inside the proxy.

v1.1.0(8y ago)43714MITPHPPHP &gt;=5.6CI failing

Since Sep 15Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/stilliard/Ditto.php)[ Packagist](https://packagist.org/packages/stilliard/ditto.php)[ RSS](/packages/stilliard-dittophp/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

[![Ditto.php](./docs/images/dittophp.png)](./docs/images/dittophp.png)

[![FOSSA Status](https://camo.githubusercontent.com/ca6bbb8e24edf37463d7509cf2700bbca39a1ed20da833d7c5414be10ee51e19/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532467374696c6c69617264253246446974746f2e7068702e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fstilliard%2FDitto.php?ref=badge_shield)[![Build Status](https://camo.githubusercontent.com/a77c2ac5514bc265da2423f69525031bc956c0160b075d4460e422df9f9caaf1/68747470733a2f2f7472617669732d63692e6f72672f7374696c6c696172642f446974746f2e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/stilliard/Ditto.php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d817f4b6dfe3d03eac851493090036dc9c05a21aa2b3a043bbf10685d1993db7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374696c6c696172642f446974746f2e7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stilliard/Ditto.php/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b45532a4d87fb288b206ed17f02014e0d6dc59f363dce9374055d9531d248926/68747470733a2f2f706f7365722e707567782e6f72672f7374696c6c696172642f646974746f2e7068702f762f737461626c652e737667)](https://packagist.org/packages/stilliard/ditto.php) [![Total Downloads](https://camo.githubusercontent.com/5cdb8f9193a1f2edc8e6e540c9a666f2f03ae676b0cf70a778937e7bcab1caad/68747470733a2f2f706f7365722e707567782e6f72672f7374696c6c696172642f646974746f2e7068702f646f776e6c6f6164732e737667)](https://packagist.org/packages/stilliard/ditto.php) [![Latest Unstable Version](https://camo.githubusercontent.com/000907814af609322ca1f916142803ec5cf2f9d0447bce71537786dfa60d6ca4/68747470733a2f2f706f7365722e707567782e6f72672f7374696c6c696172642f646974746f2e7068702f762f756e737461626c652e737667)](https://packagist.org/packages/stilliard/ditto.php) [![License](https://camo.githubusercontent.com/aad684580fffc7881f3b2ccbe99fe4a8a82cec7112cadf2581da3ae0051a852c/68747470733a2f2f706f7365722e707567782e6f72672f7374696c6c696172642f646974746f2e7068702f6c6963656e73652e737667)](https://packagist.org/packages/stilliard/ditto.php)

About
-----

[](#about)

*Ditto.php* is a php package to mimic a site by a given URL (mimics everything, all pages, images, css, js, etc.).

Used as a composer package, you can include into a file such as index.php and route all requests to it, or you can use it in a route in your framework.

It can be used as a web proxy, and can inject javascript to the page. E.g. We've used it to proxy a site in an iframe, and inject javascript to select a value on the site and pass it back up the parent site.

It also injects some javascirpt at the top of the page for you to hijack all ajax requests so these are also procxies for you ;)

Install
-------

[](#install)

```
composer require stilliard/ditto.php dev-master
```

Usage
-----

[](#usage)

See: [Example](./example/index.php)

(You can run this by cd'ing into this repo and running: `make server`)

### License

[](#license)

This project is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

[![FOSSA Status](https://camo.githubusercontent.com/34cfc0f03e07e28a649cab816e9687b4026b5db0f9245e8e0973da6d26ac7fd9/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532467374696c6c69617264253246446974746f2e7068702e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fstilliard%2FDitto.php?ref=badge_large)

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance52

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~158 days

Total

2

Last Release

3043d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.4

v1.1.0PHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77454?v=4)[Andrew Stilliard](/maintainers/stilliard)[@stilliard](https://github.com/stilliard)

---

Top Contributors

[![stilliard](https://avatars.githubusercontent.com/u/77454?v=4)](https://github.com/stilliard "stilliard (56 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![james-mckinnon](https://avatars.githubusercontent.com/u/3246228?v=4)](https://github.com/james-mckinnon "james-mckinnon (4 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

### Embed Badge

![Health badge](/badges/stilliard-dittophp/health.svg)

```
[![Health](https://phpackages.com/badges/stilliard-dittophp/health.svg)](https://phpackages.com/packages/stilliard-dittophp)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1523.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
