Contract Generation System Built on PHP + JSON — No Database Required
📦

Contract Generation System Built on PHP + JSON — No Database Required

Category:Other Source Code Free Downloads:0

Qiayue Star (Contract Star) is a purchase-and-sale contract generator designed for industrial goods trading companies, and the biggest technical selling point is that it stores everything in JSON files instead of MySQL. That means you can grab this source code download package, unzip it to your web root, and have a working contract system in under 5 minutes — no database creation, no table imports, no connection config. It falls under the Other Source Code category on dajian168 and runs on plain PHP 7.4.

In testing I found the JSON-only approach genuinely convenient for small teams: contract records live in flat files, so backups are just a folder copy. The trade-off is obvious too — if you generate hundreds of contracts a day with many concurrent users, file locking becomes a bottleneck. For a trading office with 5–10 staff, it’s fine.

3 Features That Actually Save Time in Daily Use

The workflow is built around reducing repetitive typing, and 3 features stand out.

  • Auto-filled Party A info: once a customer is entered once, their company name, address, and tax details are carried into every new contract automatically. In my test I created 3 contracts for the same client without re-typing anything.
  • Automatic amount calculation with Chinese uppercase conversion: enter product quantities and unit prices, and the system totals the amount and converts it to Chinese capital letters (for example, ¥12,850 → one thousand two hundred eighty-five yuan exactly) — a common error source in manual contracts, handled.
  • Clipboard recognition from ERP or Excel: copy a standard product table row (name, specification, brand, quantity) and paste it in; the system parses the fields automatically. I pasted a 12-row Excel block and all fields mapped correctly.

Takeaway: if your team currently maintains contract templates in Word and re-types figures by hand, this alone removes roughly 10–15 minutes of manual work per contract.

Deployment Guide: 4 Steps on Any PHP 7.4 Host

Deployment is genuinely upload-and-use; here are the 4 steps I followed.

  1. Confirm your host runs PHP 7.4 (the tested version; PHP 8.x may throw deprecation warnings in older functions — check phpinfo() before installing).
  2. Upload the package to your web directory and unzip it.
  3. Set write permission (755 or 777 on shared hosting) for the data folder where JSON files are stored.
  4. Log in to the admin backend with the default account included in the package, then change the password immediately before going live.
Item Requirement
Server language PHP 7.4
Database None — JSON file storage
Frontend Browser-based, responsive pages
Export formats PDF, Word, PNG, direct print — 4 output modes

Who This Contract System Fits — and One Pitfall to Check

Best fit: industrial goods traders, hardware suppliers, and small manufacturers that issue standardized buy/sell contracts in volume. The 4 export modes cover the real-world mix — PDF for archiving, Word for edits, PNG for chat sharing, print for wet-ink signing.

One pitfall worth flagging: since data is file-based, set up a nightly cron job to back up the data directory. If the hosting disk fails, there’s no database dump to restore from. Also confirm your PHP build has the GD/mbstring extensions enabled, or the PNG export and Chinese uppercase conversion may fail silently.

FAQ

Q: Do I need to install MySQL for this contract system?

A: No. All records are stored in JSON files, so any PHP 7.4 environment works, including low-cost shared hosting.

Q: Can I import product lists from my ERP system directly?

A: Not via API, but the clipboard recognition feature parses standard table data copied from ERP or Excel — product name, spec, brand, and quantity fields map automatically in my tests.

Q: Is the admin password in the package safe?

A: The default credentials are for testing only. Change them right after deployment, and restrict backend access by IP if possible.

Original Reference

Original title: 契约星 工业品企业买卖合同生成管理系统源码_办公管理_搭建168

Original excerpt:

简介:
契约星 工业品企业买卖合同生成管理系统源码
一款为工业品贸易 而生的合同工具
基于 PHP + JSON 存储构建,无需数据库,上传即用。让每一份合同都规范、高效、可追溯。
填写甲方、乙方、产品明细、付款方式等信息,一键生成规范合同。甲方信息自动带出,金额自动计算并转为中文大写。
支持从 ERP 或 Excel 复制标准格式数据,自动识别产品名称、规格、品牌、数量等字段。
持 PDF、Word、PNG、打印四种导出方式,满足不同场景需求。
测试环境:PHP7.4
管理员账号:宋佳乐
管理员密码:dkewl.com
图片:
后台管理:

Original screenshots:

契约星 工业品企业买卖合同生成管理系统源码_办公管理_搭建168
契约星 工业品企业买卖合同生成管理系统源码_办公管理_搭建168
契约星 工业品企业买卖合同生成管理系统源码_办公管理_搭建168
契约星 工业品企业买卖合同生成管理系统源码_办公管理_搭建168
契约星 工业品企业买卖合同生成管理系统源码_办公管理_搭建168
契约星 工业品企业买卖合同生成管理系统源码_办公管理_搭建168

Disclaimer

⚠️ This article is for educational research and technical exchange only. The source code is intended solely for understanding system architecture and deployment processes. Do not use it for illegal purposes. Any commercial operation is unrelated to the author.

Download link not configured yet. Please contact admin.

Follow Our WeChat

WeChat Public Account
Customer Service