Welcome

Codeloft is a multi-vendor marketplace for source code. Developers open an author account, upload scripts, themes, plugins, templates, apps and games, and buyers pay and download at once. You, the owner, review every upload, set the commission and run payouts from one admin panel. Everything is written for you to read and change: plain Laravel, plain CSS, plain JavaScript, no build step.

Home page

Features

Storefront

Marketplace

Payments

Admin

Server requirements

PHP8.3 or newer
Extensionspdo (pdo_mysql or pdo_sqlite), mbstring, openssl, tokenizer, xml, ctype, json, fileinfo, zip, gd, curl
DatabaseMySQL 5.7 or 8, MariaDB 10.4 or newer, or SQLite 3
Web serverApache with mod_rewrite (included .htaccess files) or Nginx (snippet below)
HTTPSRequired for live payments
Brand nameSettings → General → Site name changes the name in titles, e-mails, receipts, footer and logo text.
Cloud storageOptional. Needs an account at the storage provider, or an FTP/SFTP server.
Not neededComposer, Node.js, SSH. The vendor folder is included.

The installer checks all of this for you before it lets you continue.

Package contents

product/The script. Upload this folder's content.
documentation/This guide.
START-HERE.txtThe short version.

Inside product/: app (PHP code), resources/views (all pages, plain Blade), public (the only folder visitors can reach, with CSS, JS, fonts and images), routes, config, database (migrations and demo seeders), tests.

Install

  1. Create a database. In cPanel open MySQL Databases, create a database and a user, and give the user all privileges. Write down the name, user and password. (Skip this for SQLite.)
  2. Upload. Unzip the package and upload everything inside product/ to your domain's folder. Best: point the domain at the public folder. If your host cannot do that, keep everything in the main folder; the included .htaccess forwards visitors to public and hides private folders.
  3. Open your domain. You land on the installer. Every line in the server check must be green. If a folder is red, set its permission to 775 in the file manager.
  4. Fill in the form: site name and address, database details, your administrator account and the admin panel address. Pick a word other than admin so bots cannot guess it. Tick the sample-data box only if you want a demo shop.
  5. Press Install now. The tables are created and you are sent to the admin login.
Installer
After installing, the installer closes itself (it shows a 404). To run it again, delete storage/app/installed.lock and .env and start from an empty database.

Storage and uploads

Run php artisan storage:link if your host lets you (the installer tries it). Author zip files live in storage/app/private, which is never reachable from the web; buyers download through a signed, logged-in route.

File storage

Storage settings

The zip files authors upload are the most valuable files on your site and can get large. Settings → Storage decides where they live. Pictures always stay on your server.

This serverThe default. Files are kept in storage/app/private, which visitors can never reach.
S3 compatible bucketAmazon S3, Wasabi, Cloudflare R2, Backblaze B2, DigitalOcean Spaces, MinIO and others. Enter the endpoint (leave empty for Amazon S3), region, bucket, an optional folder and the access key pair. Create the key with permission for that one bucket only. Keep the bucket private.
FTP or SFTPAnother server you control. Enter host, port, user and password (SFTP can use a private key instead) and a folder that already exists. Prefer SFTP, or FTP with the encrypted (FTPS) switch on.

Provider hints

WasabiEndpoint https://s3.wasabisys.com (or the one for your region), region such as us-east-1.
Cloudflare R2Endpoint https://ACCOUNT.r2.cloudflarestorage.com, region auto.
Backblaze B2Endpoint https://s3.REGION.backblazeb2.com, region as shown for the bucket.
MinIOYour MinIO address, and switch on Use path style addresses.
  1. Save the settings, then press Test the saved storage. It writes, reads and deletes a tiny file and tells you what went wrong, if anything.
  2. Press Copy existing files to it to move the files that were uploaded before. Until you copy them, they keep working from this server, and nothing breaks if you switch back.

Downloads are streamed through your site, so only a signed-in buyer with a paid order can download, and the bucket never needs to be public. Secret keys are stored encrypted and never shown again.

Cron job

The shop works without one, but one line makes things automatic: the daily check for wishlist price drops (flash sales start and end by themselves), scheduled and large promotion e-mails, the weekly digest and the demo reset on a public demo. Add this in your hosting panel's cron section, once per minute:

* * * * * php /path/to/your-site/artisan schedule:run >> /dev/null 2>&1

Nginx and sub-folders

server {
    server_name example.com;
    root /var/www/codeloft/public;
    index index.php;
    client_max_body_size 128M;

    location / { try_files $uri $uri/ /index.php?$query_string; }
    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
    }
    location ~ ^/uploads/.*\.(php|phtml|phar)$ { deny all; }
    location ~ /\.(?!well-known) { deny all; }
}

Raise upload_max_filesize and post_max_size in php.ini to at least the biggest zip your authors will upload.

Admin panel

Sign in at yourdomain.com/<admin address>/login. The sidebar groups everything: Sales (orders, withdrawals, coupons), Catalog (items, categories), Content (pages, blog, FAQ), People (members, messages, subscribers) and System (settings, administrators).

Dashboard

The admin works on phones too: the menu slides in from the left and tables become cards.

Administrators

Under Administrators you can add helpers. A super administrator can do everything; a manager can do everything except add or remove administrator accounts. Forgot the password? Run php artisan codeloft:admin you@example.com in a terminal to create a new super administrator.

Two-step sign in

Every administrator can protect their own account: My account in the admin sidebar → Set it up.

  1. Install an authenticator app on your phone (Google Authenticator, Microsoft Authenticator, Authy, 1Password and many others).
  2. Add an account and choose enter a setup key. On a phone you can also tap the link on the page. Type the key shown.
  3. Enter the 6 digit code the app shows. Two-step sign in is now on, and 8 recovery codes are shown once. Save them in a password manager; each works one time.

From then on, the password alone does not sign anybody in: the second step asks for the code (or a recovery code). Codes work only once, and repeated wrong codes pause the account like wrong passwords do. If a colleague loses their phone, a main administrator can press Reset next to their name under Administrators, and they can set it up again.

Two-step setup

Logo and colours

Settings → Logo & footer: upload your logo (a transparent PNG about 400 px wide), an optional white logo for dark backgrounds and a favicon. Pictures are re-drawn and resized on the server. Here you also write the tagline, copyright line, the e-mail that receives contact messages and your social links; icons only appear for links you fill in.

Logo settings

Settings → Colors: pick a preset or any color. Buttons, links, gradients and badges follow it everywhere. Settings → Home page edits the headline, the search text, the offer banner and every section's title; each section has an on/off switch.

Colors

Fees and commission

Fee settings
Platform commissionThe share you keep from each sale. The default is 30 %, so the author gets 70 %.
Author or item overrideOpen a member or an item and set its own percent. The order is: item, then author, then site default.
Buyer feeFixed (for example $5 on top of a $30 item) or percent. It is added at checkout and belongs to the platform.
Referral sharePaid out of the platform share when a buyer came through a member's link (?ref=username).
Hold periodEarnings are released after this many days, so refunds can still be handled.
Smallest withdrawalAuthors cannot request less.

Payout statements

When you mark a withdrawal as paid, the author can open a payout statement (a one page PDF with a number such as PS-000012) from their Withdrawals page, and you can open it under Withdrawals → Paid. Write your business name, address and tax number in Settings → General → Company details on payout statements and they are printed on it. It is a record of payment, not a tax invoice.

A coupon discount is paid by the platform; the author's earning is calculated on the price before the discount.

Payment gateways

Open Settings → Payments, switch a method on and paste its keys. Secret keys are stored encrypted and are never shown again. Use test keys first, then live keys. The shop currency (Settings → General) must be supported by every gateway you switch on.

Payment settings

Stripe (cards)

Dashboard → Developers → API keys: copy the publishable and secret keys. Add a webhook endpoint https://yourdomain.com/webhooks/stripe for the event checkout.session.completed and paste its signing secret.

PayPal

Create a REST app at developer.paypal.com, copy Client ID and Secret, choose Sandbox or Live. The order is captured on return and checked against your price on the server.

Razorpay (UPI and cards)

Copy the Key ID and Key secret. Add the webhook https://yourdomain.com/webhooks/razorpay for payment.captured and paste its secret.

PayHere (Sri Lanka)

Enter the Merchant ID and Merchant secret and set the notify URL to https://yourdomain.com/webhooks/payhere. Use Sandbox mode for tests. PayHere accounts are tied to the registered domain.

Crypto (NOWPayments)

Paste the API key and the IPN secret; set the IPN callback to https://yourdomain.com/webhooks/nowpayments.

Bank or wallet transfer

Write your account or wallet details. The buyer sends the money, enters the reference, and the order waits under Orders → Waiting for review. Check your bank, then press Approve; the files and license keys are released at that moment. Every reference can be used once.

How payments are protected

The behavior is covered by automated tests in tests/Feature/PaymentSecurityTest.php. Run them with php artisan test on a development copy.

Reviewing author uploads

New items wait under Items → Pending. Open one and press Open the files. You see the whole zip as a folder tree, read any text file in the browser (matches are highlighted), view pictures, and download the zip.

File inspector

An automatic check runs when the author uploads. It looks for documentation, unsafe paths, leftover folders, executables, .env files, nested archives and zip bombs, and scans the code for encoded or obfuscated code, license locks, shell commands, hard-coded secrets and calls to other servers. It is a helper for your own judgment, not a replacement: always open a few files yourself. Press Check again after a re-upload. Approve, or reject with a note that the author sees.

Versions and updates

When an author uploads a new zip for an item that is already on sale, buyers keep getting the current files. The new version waits under that item's Versions card, marked Waiting for review. You can open its files, read the code, see the automatic check and download the zip, exactly like a new item. Then:

The previous version stays in the history. Buyers can download older versions from their Downloads page, which helps when an update breaks a site. Authors see the full history, and any rejection note, when they edit their item. Items that are still in review (or were rejected) are simply replaced, because nobody has bought them yet.

Version review

E-mails to members

Confirm your e-mailSettings → System → Members must confirm their e-mail address. New members get a link that works for 48 hours; until they use it, they can browse but cannot buy, download, sell, review or comment. You can confirm a member by hand on their page. Social sign in and password reset links count as confirmation. Switch this on only after the test e-mail under Settings → Email arrives, otherwise nobody can confirm.
New versionSent to buyers when you approve an update. Every member can switch it off under Account → Settings.
Price dropsEvery wishlist remembers the price the member last saw. When the item gets cheaper (the author lowers the price, or a flash sale starts), the member gets one e-mail. A second e-mail follows only after another drop. Members can switch it off under Account → Settings. A daily job (see Cron job) catches flash sales that start and end on their own.
Sign in protectionAfter repeated failed sign ins the owner gets an e-mail with a link to choose a new password.

Refund requests

A buyer who is not happy opens the order in their account and presses Request a refund next to the item. They choose a reason and describe the problem. They can ask within the number of days you set in Settings → Fees & commission → Refund requests (14 by default), once per item, and never for free items.

  1. The author is told. An e-mail goes to the author, and the request appears under Seller → Refund requests with a counter. The author chooses I agree or I do not agree. A reason is required when they decline. The buyer is e-mailed the answer.
  2. You are told. The request shows under Refunds in the admin menu (with a counter) the moment it is sent, and the address in Settings → Logo & footer → Email for contact form messages gets an e-mail when a request arrives and when the author answers. The tabs are Needs your decision (the author answered), Waiting for the author and Decided. You can decide without waiting for the author.
  3. You decide. Approve closes the license of that item, reverses the author's earning for it and takes one off the sales counter; the order becomes Refunded when all its items are. Then return the money in your payment provider; the page shows the amount (item plus its buyer fee). Reject needs a reason, and that reason is e-mailed to the buyer and to the author automatically.

Everybody gets an e-mail at every step, and the buyer can follow the request, with the author's and your notes, under Account → Refunds. A buyer can withdraw a request until it is decided. Edit the Refund Policy page so it matches your own days and rules.

License keys

Every purchased item gets its own key, for example CL-7K2M-Q9XA-3PLD-HW4C, tied to the buyer, the item and the license type (Regular or Extended). Buyers see it on the Downloads page and on the receipt. Authors can type a key into Seller → License check to see who bought their item and which license applies.

Buyers and authors can read a public explanation on the License Guide page (/page/license-guide, linked from every product's license window and from the footer). It is a normal page, so you can edit it under Pages.

The key is proof of purchase only. Codeloft does not lock the products and does not contact any remote server; that is what keeps the items portable and in line with marketplace rules.

Authors, levels and badges

Any member can become an author from the Sell menu (the dashboard offers a one-click opt-in). Levels 1 to 8 follow total sales value; edit the steps in Settings → Badges & levels. Item badges also come from there: how many sales make an item Popular or Bestseller and how many days it counts as New. Flash sales are set per item with a price and an end time; the badge and countdown appear and disappear by themselves.

Author dashboard

Profiles and payout details

Every memberAccount → Settings: profile picture, name, country and a short "about you" (up to 400 characters). Pictures are re-drawn and cropped on the server, so only genuine images are kept.
AuthorsAlso a wide profile banner (at least 1000 x 250 pixels), a website and links to Facebook, X, Instagram, YouTube, LinkedIn and GitHub. Every link must start with https:// and point to the right site, and is shown with nofollow.
Payout detailsSeller → Withdrawals → Payout details: PayPal e-mail, bank account and USDT address, saved once. They are stored encrypted, shown only to their owner, and never on the public page. A withdrawal request is filled in from them automatically; the author can still type other details for one request. You see the details on each withdrawal request.
What is publicAuthor level and badges, sales and review counts, items, links and the about text. What an author has earned in money is never shown publicly; only the author sees those amounts on their own page and dashboard.
ModerationOpen a member under Members to read their links or remove an unsuitable picture or banner with one click.

Author applications

With Settings → Authors → Approve new authors switched on, members who want to sell fill in the form on the Become an Author page (about them, a portfolio link, what they plan to sell). It appears under Author applications in the admin menu with a counter. Approve it and the member becomes an author at once; reject it and write the reason. Either way they get an e-mail, and a rejected member can apply again after improving the application.

Messages between members

Buyers can write to an author from the author's profile or an item page, and authors answer from Messages in the account menu. Conversations are threads with an unread counter and an e-mail alert (at most one per thread until it is read). Every message has a Report link; reports appear under Message reports in the admin menu, where you can read that thread, dismiss the report or ban the member. Members can block each other from the thread page.

SEO tools

SEO in the admin menu lists every item with a score from 0 to 100 and what is missing (title length, description, keywords, picture, text length). Press Generate to fill the title, description and keywords from the item's own text, or Generate for all to do it for every item with a weak score; your own wording is never overwritten unless you ask. The sitemap at /sitemap.xml is built automatically from items, categories, authors, blog posts and pages (with pictures) and is announced in robots.txt, so nothing needs to be uploaded.

Promotion e-mails

Promotion e-mails in the admin menu lets you send a designed e-mail to newsletter subscribers, buyers, authors or all members. Each address gets it once, even when it is in several groups; people who unsubscribed, switched promotions off in their account, or are banned are skipped.

  1. Write the subject and text ({name} becomes the first name), add a banner picture and an optional button.
  2. Choose which items to show: newest, best sellers, flash sale items, or pick up to six yourself. They appear as picture cards with price, old price, rating and badge.
  3. Tick the groups; the number of people is shown. Press Save draft, Schedule or Send now. Send a test mails the e-mail to yourself first.

Sending runs in batches (Settings → Promotions, default 50 a minute) driven by the cron job, so large lists do not overload your mail server; the progress page shows sent and failed addresses and lets you stop a campaign. Every e-mail contains a one-click unsubscribe link and the standard List-Unsubscribe header. Switch on the weekly digest in the same settings page to e-mail "new this week" every Monday automatically.

Pages, blog and FAQ

Pages holds About, Terms, Privacy, Refund and Delivery policies, the License Guide and the Become an Author page. Edit the text, switch a page off, or add new ones; choose the footer column. Page text goes through a safety filter that removes scripts. The default texts are generic starting points: read and adapt them to your business and country before you go live.

Pages

Blog posts get a cover picture (resized for you) and appear on the home page and in the sitemap. FAQ entries appear on the FAQ page. Messages are the contact form entries; Subscribers lists the newsletter e-mails and exports them as CSV.

E-mail (SMTP)

Settings → Email. Fill in host, port, encryption, user and password from your mail provider, and a from-address on your own domain. Mail is sent for receipts, password resets and the contact form.

ProviderHostPort / encryption
Your hosting mailboxmail.yourdomain.com587 TLS or 465 SSL
Brevosmtp-relay.brevo.com587 TLS
Mailgunsmtp.mailgun.org587 TLS
Amazon SESemail-smtp.<region>.amazonaws.com587 TLS

Google and Facebook login

Settings → Social login shows the redirect address to copy into each developer console, for example https://yourdomain.com/auth/google/callback. Paste the client id and secret and switch the provider on; the buttons appear on the sign-in and sign-up pages. An existing account is linked only when the provider confirms the e-mail address, so nobody can take over an account by guessing an e-mail.

SEO, analytics and ads

Settings → SEO & ads: default title and description, Google Search Console verification code, Google Analytics 4 id, and AdSense publisher id with a slot for the shop and the item pages. /sitemap.xml, /robots.txt and /ads.txt are generated for you. Submit the sitemap in Search Console. Ids are checked before they are printed on the page.

SEO settings

Security

Public demo mode

To show your shop to the public without risk, install it on a sub-domain and add DEMO_MODE=true to .env. The admin panel can then be browsed but nothing can be changed. php artisan codeloft:demo-reset restores the sample data and creates the viewing account again. Its address and password come from DEMO_ADMIN_EMAIL and DEMO_ADMIN_PASSWORD in .env (for example demo@demo.com and demo123456), so you can publish them as the demo login. On a demo site the admin sign-in page and the member sign-in page also show one-click buttons (/admin/demo-login, /demo-login/author, /demo-login/buyer), so reviewers and visitors get in without typing anything; these addresses answer 404 when DEMO_MODE is off. Authors and buyers in the sample data use the password Demo-pass-2026 on a demo site (for example codeloom@demo.example.com); with the usual cron line * * * * * php /path/to/artisan schedule:run it runs every three hours by itself. Use gateway test keys on a demo.

Sample accounts and clearing the sample data. A normal install gives the sample authors and buyers random passwords. Under Sample data in the admin menu, Set the sample password gives them Demo-pass-2026 (for example codeloom@demo.example.com), which is what a reviewer or a demo visitor needs. Delete the sample data removes all sample accounts with their items, orders and messages for good, so the shop is empty before you sell real items. The main administrator can also use Delete for good on any item or member page.

Updating

  1. Back up the database and files.
  2. Upload the new files over the old ones; keep .env, storage and public/uploads.
  3. Run php artisan migrate --force (terminal), or ask your host to.
  4. Clear the cache with php artisan optimize:clear.

Troubleshooting

Blank page or error 500Check that storage and bootstrap/cache are writable, then read storage/logs/laravel.log.
The installer shows a red lineFollow the hint under it; hosts list extensions in their PHP selector.
404 on every page except the home pagemod_rewrite or the Nginx try_files rule is missing.
Pictures are missingRun php artisan storage:link and check the site address in .env (APP_URL).
Zip upload failsRaise upload_max_filesize and post_max_size.
A payment stays pendingThe gateway could not reach /webhooks/.... Check the webhook URL, the secret and that HTTPS has a valid certificate.
I forgot the admin addressIt is ADMIN_PATH in .env.

Credits

Laravel, PHP librariesMIT
Laravel SocialiteMIT
Bootstrap IconsMIT
Plus Jakarta Sans, Inter, CaveatSIL Open Font License, hosted on your own server
Demo photographsUnsplash licence, listed in public/assets/img/p/CREDITS.txt. They are for the sample data only; replace them with your own.

Changelog

Version 1.0.0