百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

contract

> 编程语言
开源

一个可签署的合同,存储在单个文件中

547 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

一个可签署的合同,存储在单个文件中

Updates

12/31/23: Added functionality for shortcodes.


Single File Contract

A contract that lives in a single file and becomes static HTML after it's been signed.

  1. Generate a contract file →
  2. Upload it to your server
  3. Send your client a link to it
  • View demo

How it works

  • Contract Generator →
  1. Click the link above to create a contract file with custom content or HTML, a signature for the first party, and filename like contract-1234567890.php.
  2. Upload the generated file to your own server or domain. You can also rename this file and put it in a folder with a unique name, eg: contract-1234567890/index.php.
  3. Once signed by both parties, the PHP file will delete itself from your server and leave behind a static HTML file.


What's in each file

contract.php

An example of a contract script: contains all code (PHP, CSS, HTML, PNG-data, JS) required by a stand-alone contract file. Upon being signed, this script deletes itself (or rather, it deletes its .php file), and leaves behind an .html file with the same name: a final version of the contract, signed by both parties.

The first 10 or so lines of the file are used to store contract metadata (one per line), ie:

<?php /* ##########################
[client_email]
[dev_email]
[dev_signature]
[dev_ip]
[dev_timestamp]
[dev_timestamp_offset]
[dev_name]
[client_name]
###################################

test.php

A copy of contract.php -- the only difference is when the filename is test.php or demo.php the PHP file doesn't delete itself when signed.


/generator/

Folder containing all the code behind the online generator.

The Contract Generator can be downloaded by getting the generator.zip archive from the Releases section.

MIT License

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPcontractsfreelanceself-hostedsmall-business

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言