How to Sell Source Code: Package It, License It, Secure It and List It
By Manob Editorial ·

To sell source code, package it so a buyer can install it quickly: a clean copy of the repository, an install script, an .env.example, documentation, and a demo with a login. Offer Regular and Extended licenses, check your dependencies' licenses, strip every secret, scan for known vulnerabilities, publish a support policy, then list where new sellers can still join.
What should a source-code package contain?
A buyer's first test is whether the code installs. If it doesn't, nothing else counts. Ship these five things.
1. A clean copy, not your working repository
Build the download from a tagged release, not by zipping your project folder. Git's git archive will "create an archive of files from a named tree", which leaves out the .git folder, its old commits and any untracked files. Mark tests, CI settings and private notes with export-ignore in .gitattributes; Git says such files "won't be added to archive files".
git tag v1.4.0
git archive --format=zip --prefix=myscript/ -o myscript-1.4.0.zip v1.4.0
Decide whether you ship vendor/ or node_modules/. Buyers on shared hosting may have no shell access to run Composer, so if you expect them, include vendor/, and say what you chose in the docs.
2. An install script
One command or one web installer should check the server, write the config, build the database and create the first admin. For a Laravel script, the steps look like this:
cp .env.example .env
composer install --no-dev
php artisan key:generate
php artisan migrate --seed
A web installer that checks the PHP version and extensions first saves a ticket for every buyer whose host is out of date. Make the first admin set their own password; never ship a default one that works in production.
3. An .env.example with placeholders
List every variable the app reads, with a placeholder and a comment on where to get it (mail, storage, payment gateway). Laravel's configuration docs describe the pattern: placeholders in the example file let others "clearly see which environment variables are needed", while the real .env "should not be committed to your application's source control".
4. Documentation
Cover server requirements, installation, setup of each third-party service, updating to a new version, a changelog, the license and how to get support. Host it online as well as in the zip. On manob.ai, a documentation link is required for code items before they go live. Our guide to writing theme documentation has an outline you can adapt.
5. Demo data and a demo login
Seed realistic records so the demo looks like a working business, and publish a login for each role (admin, vendor, customer) on the listing. In demo mode, turn off outgoing email, live payments and file uploads, and reset the database on a schedule.
How should you license source code?
Offer two tiers. On manob.ai, a Regular License covers one end product whose end users aren't charged, and an Extended License one end product that end users pay for. Envato uses the same test on ThemeForest, where the Regular License covers "a single end product which end users are not charged for". Our CodeCanyon alternatives guide explains how Envato applies it to code.
Say what SaaS use needs. If a buyer runs your script as a service that customers pay for, the end users are paying, so under these definitions that's an Extended License. Marketplace, booking and course scripts are built to run that way, so state it on the listing. See Regular vs Extended License for more cases.
Check every dependency's license. Composer's licenses command "lists the name, version and license of every package installed" (Composer docs). Then read what each license asks of you:
- MIT: allows selling, but "the above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software" (MIT License).
- GPL in WordPress: WordPress is GPLv2 or later, and WordPress.org says it feels "strongly that plugins and themes are derivative work and thus inherit the GPL license" (WordPress license).
- AGPL: a modified version "must prominently offer all users interacting with it remotely through a computer network" a way to get its source (GNU AGPL, section 13). If buyers modify an AGPL-based script and run it as a service, that can apply to them. Check before you ship, and ask a lawyer if unsure.
- No license: GitHub notes that without one "the default copyright laws apply", and no one may "reproduce, distribute, or create derivative works" (GitHub docs). Don't paste unlicensed code into a product you sell.
Put the third-party packages and their licenses in a credits file inside the download.
How do you keep secrets and vulnerable code out of the download?
Never ship your .env, API keys, payment gateway keys, SMTP passwords, private keys, or a database dump with real users. Before every release:
- Scan for secrets. GitHub's secret scanning "scans your entire Git history on all branches of your repository for hardcoded credentials", free on public repositories. Search the final zip too, since that's what buyers get.
- Rotate anything that leaked. If a key was ever committed, GitHub says "as a first step you need to revoke and/or rotate that secret" (GitHub docs).
- Scan dependencies.
npm auditasks your registry "for a report of known vulnerabilities" (npm docs).composer audit"checks for and lists security vulnerability advisories" and also "detects abandoned packages and packages flagged as malware". Note fixes in the changelog. - Ship with debug off. Laravel says
APP_DEBUGin production "should always be false", or "you risk exposing sensitive configuration values to your application's end users". - Don't obfuscate your code. Encoded
evalcalls look exactly like the backdoors scanners hunt for.
Marketplaces check too, but a scan is a backstop, not your security review. On manob.ai, every uploaded product file is scanned with the ClamAV antivirus engine and checked for backdoor-style code, such as encoded eval, shell commands taken from requests and web-shell file names, before approval, and a person decides on any finding. A license check built on encoded eval will be flagged. Our nulled WordPress themes guide shows why buyers are wary.
What support policy should you publish?
Six months of included support is the norm. manob.ai includes 6 months with every product sold; an extension costs 30% of the price before it expires or 75% after. Envato's item support also covers 6 months on supported items, extendable to 12 (December 2026).
Write down what support covers. Envato's exclusions are a fair model: "Installing the item", "Hosting, server environment, or software issues", and services to "modify or extend the item beyond its original features". Scripts draw installation questions, so decide your answer in advance. One option is to sell installation as a service: on manob.ai, development services carry a 20% commission, so sellers keep 80%. State how buyers reach you, a response time you can keep, and which language and framework versions you support.
How much should you charge for source code?
In our 1 December 2026 price study of the 2,696 items that 24 authors brought to manob.ai, these authors' CodeCanyon scripts had a median listed price of 49 dollars (33 items), and their mobile app source code 39 dollars (11 items). Those are these authors' items, not CodeCanyon as a whole. On manob.ai, live items range from 5 to 99 dollars.
Two things push a script's price up: the support it will need, and the Extended License that SaaS buyers need. Our guide on how to price website templates has the full table by item type and the take-home math per marketplace.
Where can you sell source code? Fees as of 1 December 2026
| Where | What the seller keeps or pays | Worth knowing |
|---|---|---|
| manob.ai (ours) | Keeps 65% of each product sale (35% commission) | Non-exclusive; mostly themes and templates |
| CodeCanyon | 50% of the item price; the list price includes Envato's buyer fee | New Market author accounts can't be created; Code won't reopen "at this stage" |
| TemplateMonster | Pays authors a flat 20% of their price; customer fee added on top | Lists WordPress plugins among its product types |
| Gumroad | 10% + 50 cents per direct sale; 30% via Discover | Merchant of record; you bring the buyers |
| Paddle | 5% + 50 cents per checkout transaction | Merchant of record |
| Creative Market | Shops earn 50% of list price by default | Rates vary by shop and product |
| Lemon Squeezy | Closed to new sign-ups on 16 November 2026 | Stops processing payments on 31 March 2027 |
Sources: manob.ai homepage; Envato's author applications page; TemplateMonster's commission page; Gumroad; Paddle; Creative Market; Lemon Squeezy's shutdown post. If your code ships with a design file: Figma takes a flat 15% on paid Community files but isn't approving new sellers of paid files.
A merchant of record handles sales tax for you; Gumroad says it has handled all your tax obligations since 1 January 2025. Marketplaces bring buyers, and direct stores let you keep more. manob.ai, Envato and TemplateMonster are all non-exclusive, so you can do both; see selling on multiple marketplaces. If your scripts are already on CodeCanyon, the free migrator imports them with files, demo, description and price, and they still go through review.
When to look elsewhere
manob.ai is much smaller than ThemeForest, which lists over 67,500 website templates and themes (December 2026), and it is mostly themes and templates: on 1 December 2026, its 3,620 live items included 35 scripts and 38 plugins. If you're an existing CodeCanyon author, keep that listing; Envato's terms let you sell elsewhere too, and a new author account can't be created there today. If you sell a library or developer tool to other developers, a direct store with license keys may fit better than any template marketplace. For how live scripts present stack, demos and requirements, see our PHP scripts roundup.
Our view (we run a marketplace)
manob.ai earns its 35% only when a seller's item sells here, so we benefit when you list with us. With that said, here's what we think: the install script and the demo login decide more sales than the feature list, and an honest "not included" list in your support policy saves more time than a vague promise of "full support". We'd also sell non-exclusively from day one; no single marketplace's terms are worth betting a product on.
Frequently asked questions
Can you sell software that includes open-source code?
Often, yes, if each license allows it and you meet its conditions. The MIT License permits selling as long as its copyright and permission notice stays in the copies. Copyleft licenses such as the GPL and AGPL add duties, so read each one before you ship.
Where can I sell PHP scripts?
On a marketplace such as manob.ai, where sellers keep 65%, or direct through Gumroad or Paddle. As of December 2026, Envato isn't creating new author accounts, so CodeCanyon is open only to existing authors.
Which license does a buyer need to run my script as a SaaS?
If the buyer's end users pay, the Extended License under manob.ai's definitions; on ThemeForest, Envato's Regular License likewise covers only an end product "which end users are not charged for". Say so on your listing.
Should I include an .env file in my download?
No. Ship an .env.example with placeholders and document each variable. Laravel's docs say the real .env should not be committed to source control, and it shouldn't be in your zip either.
How much should I charge for a PHP script?
In our 1 December 2026 study, the CodeCanyon scripts that 24 authors brought to manob.ai had a median list price of 49 dollars. Adjust for the support it will need, and price the Extended License for SaaS use.