Skip to content

contract

Self-hosted PHP contracts that sign in the browser and freeze into static HTML

Permissive (OSI) · MIT

Listed by , founder & editor

22

Health

Dormant

Overview

Stars

546

Last commit

2 years ago

Feb 2025

Repository age

11 years

since Oct 2015

Latest version

v2.0.0

Dec 2022

Contributors

–

Releases

0

last 12 months

Language

PHP

Single File Contract is a small PHP tool for freelancers and small businesses who want to send a contract and collect two signatures without a paid e-signature service. A web-based generator builds one PHP file holding your contract text or custom HTML, plus your signature and a filename such as contract-1234567890.php.

You upload that file to your own server and send your client the link. The file contains all of its own PHP, CSS, HTML, JavaScript and image data. The first lines store metadata such as client and developer emails, names, IP addresses and timestamps. When both parties have signed, the PHP file deletes itself and leaves a static HTML file with the final signed contract.

The project also ships a test.php copy that keeps its PHP file after signing, so you can try the flow. The generator code is in the repository and can be downloaded as generator.zip from the releases. It is MIT licensed and runs on any PHP host. It suits simple two-party agreements, not full document workflows. It can stand in for basic uses of hosted e-signature tools.

Who it's for

Freelancers sending project agreements

One uploaded file and a link are enough to collect both signatures on your own domain.

Skip if: You need audit trails or signing rules that clients expect from a legal-grade service.

Small agencies with a PHP web host

You can reuse existing hosting and keep signed contracts as plain HTML files.

Skip if: You need templates, reminders and many signers managed in one dashboard.

The problem it solves

Sending a contract for signature usually means paying for an e-signature service or passing PDFs back and forth. This tool lets you generate one file, host it yourself and end up with a signed static page.

Strengths

  • Whole contract lives in one PHP file with code, styles and images included
  • Signed contract becomes a static HTML file after both parties sign
  • Runs on ordinary PHP hosting with no database mentioned
  • MIT license with generator source available
  • Shortcode support for filling in contract content

Trade-offs

  • No commits since February 2025 and no releases in the past year
  • Built for two parties, not multi-signer workflows
  • You host and secure the files yourself
  • No document management beyond the generated files

Self-host contract

Self-hostable
Yes

Frequently asked questions

Is it free?

Yes. It is released under the MIT license, so you can use and modify it at no cost.

Can I self-host it?

Yes. You upload the generated PHP file to your own server or domain.

What happens after signing?

Once both parties have signed, the PHP file deletes itself and leaves a static HTML copy with the same name.

Can I test it without losing the file?

Yes. A file named test.php or demo.php keeps its PHP file after signing.

Similar tools in E-signature and document management

docbase

E-signature and document management

Self-hostable document sharing app for sending files and tracking views, built on Next.js

232 22 11 days ago Active MIT

Autofirma

E-signature and document management

Spanish government's electronic signing tool for desktop, built on Java and Maven

348 157 35 days ago Slowing EUPL-1.1 AND GPL-2.0-or-later

ClovaLink

E-signature and document management

Self-hosted multi-tenant file management with compliance modes for MSPs and regulated

289 28 8 months ago Slowing MIT

Hashdocs

E-signature and document management

Document sharing links with email gates and per-page view tracking for founders

165 25 2 years ago Dormant Apache-2.0

Replaces DocSend

Wraft

E-signature and document management

Self-hostable platform for drafting, collaborating on and producing business documents

171 30 2 months ago Slowing AGPL-3.0

DigiDoc4 Client

E-signature and document management

Desktop client for signing and encrypting documents with Estonian eID cards

146 52 3 days ago Active LGPL-2.1