Single File Contract

单一文件中的可签署合同。(A signable contract that lives in a single file)

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

email-contract


How it works

  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.

Netlify Status


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.

contract-generator


MIT License

主要指標

概覽
名稱與所有者nonsalant/contract
主編程語言PHP
編程語言PHP (語言數: 5)
平台BSD, Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2015-10-22 12:04:10
推送於2025-02-15 07:05:48
最后一次提交2024-01-17 15:16:06
發布數1
最新版本名稱v2.0.0 (發布於 )
第一版名稱v2.0.0 (發布於 )
用户参与
星數526
關注者數23
派生數100
提交數442
已啟用問題?
問題數8
打開的問題數0
拉請求數13
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?