Posify POS
Complete Laravel-powered Point of Sale system for retail and food businesses โ POS terminal, inventory, suppliers, purchase orders, cash register shifts, customer loyalty, expense tracking, and reports.
Introduction
Posify POS is a complete, single-application Point of Sale system built on Laravel 12. It covers every aspect of a retail or food business:
POS Terminal
Barcode scanning, split payments, thermal receipts, and cash register shifts.
Inventory & Purchasing
Products, variants, warehouses, suppliers, and purchase orders with stock receiving.
Reports & Admin
Sales, P&L, inventory valuation, expense, and product reports โ all CSV exportable.
Everything runs as one Laravel application โ no separate frontend server required, and the admin and POS work in a phone browser. An optional Flutter staff app is included as source in posify-app.zip if you want a native companion for the shop floor; it is not needed to run the POS. Follow this documentation to install and configure Posify POS on your server.
System Architecture
Posify POS is a monolithic Laravel application โ one codebase, one deployment. Livewire handles reactive UI components server-side, so no separate JS build server is needed in production.
What's Included
- โ Laravel 12 full source code
- โ Web installer wizard
- โ Pre-seeded demo data (optional)
- โ Documentation
Tech Stack
- โข PHP 8.2+ / Laravel 12
- โข Livewire 4 / Alpine.js
- โข Tailwind CSS v4
- โข MySQL 5.7+ / MariaDB
- โข Server-side barcode generation (picqer/php-barcode-generator)
Changelog
- โ POS terminal โ products, inventory, orders, payments
- โ Customers, users, roles & permissions
- โ Multi-language, settings, REST API
- โ Web installer โ browser-based multi-step setup wizard (requirements, purchase verification, database, admin, finish)
- โ Suppliers & Purchase Orders โ supplier CRUD, PO with line items, stock receiving into inventory, supplier payments
- โ Cash register / shifts โ open & close register sessions, cash in/out movements, printable Z-Report
- โ Returns & refunds โ return items against an order with optional restock; payment status reflects partial/full refunds
- โ Customer accounts โ due/credit ledger, loyalty points (earn on sale, redeem for value), per-customer ledger view
- โ Expense management โ expense categories and expenses with date filtering
- โ Reports โ Sales, Product, Category, Profit & Loss, Inventory Valuation, and Expense reports โ each exportable to CSV
- โ Thermal receipts โ 80mm / 58mm auto-printing alongside the existing A4 PDF invoice
- โ Barcode in POS โ scan-to-search in the POS terminal, plus printable barcode label sheets (server-side SVG generation)
- โ Database backup & restore โ admin-initiated SQL dump/restore (no shell access required)
- โ Loyalty settings โ added to General Settings
- โ Help Desk & Customer Portal โ support tickets with categories, assignment, internal notes, attachments and canned replies, plus a customer portal and public help centre (optional dedicated subdomain)
- โ AI Assistant (optional) โ provider-agnostic AI (Anthropic Claude, OpenAI or Google Gemini) with an encrypted-at-rest API key: help-desk summarize/suggest/improve, automatic ticket category/priority/sentiment, and product SEO/content/image/inventory insights. See the AI Assistant guide
Server Requirements (VPS)
Minimum recommended specs for running Posify POS (Laravel + MySQL) on a VPS.
CPU
1 vCPU minimum. 2 vCPUs recommended for production.
RAM
1 GB minimum. 2 GB recommended.
OS
Ubuntu 22.04 LTS (recommended) or Debian 12.
Important Server Documentation
Follow these notes when the application shows a server error.
500 Internal Server Error โ Common Fix
The most common cause is a missing .env file or missing Laravel app key:
Then update .env with your database credentials before continuing.
Storage Permissions
File uploads and cache will fail if storage folder permissions are wrong:
Install & Configure Nginx
1. Install Nginx
sudo apt update
sudo apt install -y nginx
sudo systemctl enable nginx
sudo systemctl start nginx
2. Virtual host โ /etc/nginx/sites-available/yourdomain.com
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
root /var/www/posify-pos/public;
index index.php;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
}
location ~ /\.ht { deny all; }
}
3. Enable site & reload
sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
Install & Configure MySQL
1. Install MySQL 8
sudo apt install -y mysql-server
sudo systemctl enable mysql
sudo mysql_secure_installation
2. Create database & user
sudo mysql -u root -p
CREATE DATABASE posify CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'posify_user'@'localhost' IDENTIFIED BY 'StrongPassword!';
GRANT ALL PRIVILEGES ON posify.* TO 'posify_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
3. Update Laravel .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=posify
DB_USERNAME=posify_user
DB_PASSWORD=StrongPassword!
Install PHP & Extensions
Posify POS requires PHP 8.2 or higher. The commands below install PHP 8.3 (recommended) with all required extensions.
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install -y php8.3 php8.3-fpm php8.3-mysql php8.3-mbstring \
php8.3-xml php8.3-bcmath php8.3-curl php8.3-zip php8.3-gd php8.3-intl
sudo systemctl enable php8.3-fpm
sudo systemctl start php8.3-fpm
php -v should show PHP 8.3.x
Install Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
composer --version
Then inside your project directory:
cd /var/www/posify-pos
composer install --optimize-autoloader --no-dev
Domain & DNS Configuration
Point your domain to the VPS IP via your registrar's DNS panel.
| Type | Name / Host | Value | TTL |
|---|---|---|---|
| A | @ | YOUR_VPS_IP | Auto |
| A | www | YOUR_VPS_IP | Auto |
dig yourdomain.com.
SSL Setup with Certbot (HTTPS)
1. Install Certbot
sudo apt install -y certbot python3-certbot-nginx
2. Obtain certificate
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
3. Verify & test auto-renewal
sudo nginx -t && sudo systemctl reload nginx
sudo certbot renew --dry-run
APP_URL=https://yourdomain.com in your Laravel .env and clear cache: php artisan config:clear
Shared Hosting Requirements
Confirm your cPanel environment supports the following before deploying.
Laravel / Posify POS
- โ PHP 8.2+ via MultiPHP or PHP Selector
- โ MySQL 5.7+ or MariaDB
- โ Composer (SSH Terminal)
- โ SSH Terminal access (cPanel โ Terminal)
- โ Addon Domain / Subdomain creation
- โ File Manager or FTP access
- โ AutoSSL / Let's Encrypt SSL
Laravel Setup on cPanel
Deploy Posify POS on shared hosting step by step.
Create Domain & Point to public/
In cPanel โ Domains, add your domain and set its Document Root to the project's public/ folder:
/home/yourusername/posify-pos/public
Upload Project Files
Upload the ZIP via cPanel โ File Manager then extract:
cd ~/posify-pos unzip posify-pos.zip -d . rm posify-pos.zip
Set PHP Version to 8.2+
In cPanel โ MultiPHP Manager (or PHP Selector), select your domain and set PHP to 8.2 or newer. Enable extensions: pdo_mysql mbstring xml curl zip gd bcmath fileinfo.
Create MySQL Database
cPanel โ MySQL Databases:
- Create database:
yourusername_posify - Create user with a strong password
- Add user to database with All Privileges
Configure .env
Rename .env.example โ .env and edit:
# App APP_NAME="Posify POS" APP_ENV=production APP_DEBUG=false APP_URL=https://yourdomain.com # Database DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=yourusername_posify DB_USERNAME=yourusername_dbuser DB_PASSWORD=StrongPassword! # Mail (optional) MAIL_MAILER=smtp MAIL_HOST=mail.yourdomain.com MAIL_PORT=587 MAIL_USERNAME=no-reply@yourdomain.com MAIL_PASSWORD=your_email_password MAIL_FROM_ADDRESS=no-reply@yourdomain.com
Install Composer & Run Artisan
cd ~/posify-pos curl -sS https://getcomposer.org/installer | php php composer.phar install --optimize-autoloader --no-dev php artisan key:generate php artisan migrate --force php artisan db:seed --force php artisan storage:link php artisan optimize
Set Permissions & Enable SSL
chmod -R 755 storage bootstrap/cache
Enable SSL via cPanel โ SSL/TLS โ AutoSSL or Let's Encrypt.
Test the Installation
Visit your domain โ you should see the login page:
Server Requirements
Verify your hosting environment before installation.
PHP & Extensions
- โ PHP 8.2 or higher
- โ OpenSSL
- โ PDO + PDO_MySQL Extension
- โ Mbstring Extension
- โ Tokenizer Extension
- โ XML Extension
- โ Ctype Extension
- โ cURL Extension
- โ JSON Extension
- โ BCMath Extension
- โ Fileinfo Extension
- โ ZIP Extension
- โ GD Extension
Database & Server
- โ MySQL 5.7+ or MariaDB
- โ Composer 2.x
- โ Apache or Nginx
- โ SSL Certificate (HTTPS)
- โ 512MB+ RAM
Installation Guide
Deploy Posify POS on your VPS. You can use the web installer (no SSH needed for setup) or install manually via SSH.
Download from Envato
Log in to CodeCanyon โ Downloads โ Posify POS โ Download All Files & Documentation. Extract the ZIP.
Upload Project to Server
Option A โ SCP / FTP
scp posify-pos.zip user@YOUR_VPS_IP:/var/www/ ssh user@YOUR_VPS_IP cd /var/www && unzip posify-pos.zip -d posify-pos
Option B โ Git
sudo mkdir -p /var/www/posify-pos cd /var/www/posify-pos sudo git clone https://github.com/your-repo/posify-pos.git .
Configure .env & Choose Install Method
Copy .env.example โ .env, then visit the installer in your browser and follow the on-screen steps โ no SSH needed for the rest of the setup:
Installer Steps Preview
Copy and edit .env via SSH, then run artisan commands:
cd /var/www/posify-pos cp .env.example .env nano .env # set APP_URL, DB_* values composer install --optimize-autoloader --no-dev php artisan key:generate php artisan migrate --force php artisan db:seed --force php artisan storage:link php artisan optimize
Set Folder Permissions
chmod -R 775 storage bootstrap/cache chown -R www-data:www-data storage bootstrap/cache
Test the Installation
Open your browser and visit the admin panel โ you should see the login page.
Before going live, verify:
APP_DEBUG=false- Storage symlink exists:
ls -la public/storage - Folder permissions set on
storage/andbootstrap/cache/ - SSL certificate active
Configuration
Key settings available from Admin โ Settings after installation.
General Settings
- โข Store name, logo, currency, timezone
- โข Tax rate and tax name
- โข Loyalty points rate (earn per sale amount) and redemption rate
- โข Receipt header / footer text
- โข Default language
Thermal Receipt Printer
Configure from Settings โ Receipt Settings. Choose paper width (80mm or 58mm) and enable auto-print after POS sale.
Mail (SMTP)
Set in your .env file:
MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=587 MAIL_USERNAME=your_username MAIL_PASSWORD=your_password MAIL_FROM_ADDRESS=no-reply@yourdomain.com MAIL_FROM_NAME="Posify POS"
Queue Worker & Background Jobs
Posify POS ships with QUEUE_CONNECTION=sync in .env โ emails and notifications are sent immediately during the request, so everything works out of the box with no worker process and no extra setup.
sync.
1. Enable background sending
Set the queue driver to database in your .env, then clear the config cache:
QUEUE_CONNECTION=database
php artisan config:clear
Queued jobs are now stored in the database โ but they only run while a queue worker is running. Pick one of the options below.
2a. Recommended (VPS): Supervisor
Supervisor keeps the worker alive permanently and restarts it if it crashes:
sudo apt install -y supervisor sudo nano /etc/supervisor/conf.d/posify-worker.conf
[program:posify-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/www/posify-pos/artisan queue:work database --sleep=3 --tries=3 --max-time=3600 autostart=true autorestart=true stopasgroup=true killasgroup=true user=www-data numprocs=1 redirect_stderr=true stdout_logfile=/var/www/posify-pos/storage/logs/worker.log stopwaitsecs=3600
sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl start posify-worker:*
2b. Fallback (shared hosting): Cron
No Supervisor on shared hosting? Add a cron job (cPanel โ Cron Jobs) that drains the queue every minute and exits when it's empty:
* * * * * php /home/yourusername/posify-pos/artisan queue:work --stop-when-empty
Adjust the path to your installation. Emails may be delayed by up to a minute โ acceptable for most stores.
sudo supervisorctl restart posify-worker:* or php artisan queue:restart) so it picks up the new code.
Features
All modules available in Posify POS v1.0.0.
Dashboard
Real-time overview of store performance โ today's revenue, orders, top products, and low-stock alerts.
- โ Daily, weekly, and monthly revenue charts
- โ Total orders and top-selling products
- โ Low-stock product alerts
- โ Recent order activity feed
POS Terminal
Fast checkout screen with barcode scan-to-add, split payments, discounts, and instant thermal receipt printing.
- โ Barcode scan-to-search (USB/Bluetooth scanner)
- โ Cash, card, and split payment support
- โ 80mm / 58mm thermal receipt + A4 PDF
- โ Redeem customer loyalty points at checkout
- โ Orders sync with inventory automatically
Products & Inventory
Full product catalog with categories, brands, units, variants, and warehouse-level stock tracking.
- โ Products with variants, addons, and images
- โ Categories, brands, and units of measure
- โ Per-warehouse stock levels and movements
- โ Stock transfers between warehouses
- โ Printable barcode label sheets (server-side SVG)
Suppliers & Purchase Orders
Manage supplier relationships and purchase orders from order creation through stock receiving.
- โ Supplier CRUD with contact details
- โ Purchase orders with line items and costs
- โ Receive stock into inventory from POs
- โ Track supplier payments and balances
Cash Register & Returns
Full shift management with Z-Reports and a complete returns/refund flow with restock option.
- โ Open/close register sessions with opening cash
- โ Cash in/out movements during shift
- โ Printable Z-Report on close
- โ Return items against an order (with optional restock)
- โ Payment status auto-updates to partial/full refund
Roles & Permissions
Fine-grained role-based access control โ define exactly what each staff member can see and do.
- โ Unlimited custom roles (cashier, manager, admin)
- โ Toggle individual permissions per role
- โ Assign multiple roles to one user
- โ Activity log of all admin actions
Settings & Utilities
Store settings, multi-language management, database backup/restore, and more โ all from the admin panel.
- โ Store info, currency, tax, and receipt settings
- โ Loyalty points earn/redeem rates
- โ Multi-language with admin-editable translations
- โ Database backup & restore (no shell needed)
AI Assistant
Posify ships with an optional AI Assistant that adds a set of "magic" helpers across the
help desk and the product catalog. It is provider-agnostic โ you bring your own API key
for Anthropic Claude, OpenAI, or Google Gemini โ and it is
configured entirely from the admin panel. No .env
editing is required.
Help-desk assist
Summarize a ticket, draft a reply, or polish a draft you already wrote.
Auto-triage
Category, priority and customer sentiment applied to tickets automatically.
Product Insights
Score a product for SEO, content, images and inventory with fixes to apply.
Setting Up the AI Assistant
Setup takes a couple of minutes. You will need an API key from one AI provider. AI is billed by that provider on a pay-as-you-go basis (bring-your-own-key) โ Posify does not resell or mark up usage.
1 ยท Get an API key
Create a key with whichever provider you prefer:
| Provider | Where to get a key | Default model |
|---|---|---|
| Anthropic Claude | console.anthropic.com โ API Keys | claude-opus-4-8 |
| OpenAI | platform.openai.com โ API keys | gpt-4o-mini |
| Google Gemini | aistudio.google.com โ Get API key | gemini-1.5-flash |
2 ยท Enter it in Posify
- Go to Admin โ Settings โ AI Assistant.
- Turn on Enable AI features.
- Pick your Provider (Claude, OpenAI or Gemini).
- Model โ leave blank to use the provider default above, or type a specific model name (e.g.
gpt-4o). - Paste your API key and click Save settings.
3 ยท (Optional) Turn on automatic triage
On the same settings page, the Automatic features card lets you enable hands-off help-desk triage. These run quietly in the background whenever a ticket is created or a customer replies:
- โข Auto-categorize โ files new tickets into the best-fitting category.
- โข Auto-priority โ sets new tickets to low / normal / high / urgent.
- โข Auto-sentiment โ reads the customer's tone (positive / neutral / negative / frustrated) and refreshes it on every new customer message.
api.anthropic.com,
api.openai.com or
generativelanguage.googleapis.com). If your firewall
blocks outbound traffic, whitelist the relevant host.
What the AI Assistant Can Do
Once configured, three groups of AI features light up across the admin.
๐ง Help-desk reply assist
On any support ticket, agents with the support-tickets_reply permission see three buttons:
- โ Summarize โ a 3โ5 bullet recap of the whole conversation, so an agent can catch up instantly.
- โ Suggest reply โ drafts the next reply to the customer; the agent reviews and edits before sending.
- โ Improve with AI โ takes a reply you've already typed and polishes grammar and tone while keeping every fact, name and number intact.
Nothing is ever sent automatically โ a human always reviews and clicks send. Staff-only internal notes are excluded from what the model sees.
๐ท๏ธ Automatic ticket triage
When enabled in settings, these run in the background โ the agent never waits on the AI provider:
- โ Category chosen from your existing ticket categories (new tickets only, and only if not already set).
- โ Priority assigned as low / normal / high / urgent (new tickets).
- โ Sentiment badge on the ticket, refreshed each time the customer replies.
๐ฆ Product Insights
On a product's detail page, staff with products_edit can click Analyze to get a catalog-quality report:
- โ An overall score (0โ100) plus four scored dimensions: SEO, Content, Images, and Inventory & Pricing.
- โ Short, concrete, actionable feedback per dimension (e.g. "Add at least two more product photos").
- โ The report is cached on the product, so it stays visible until you re-analyze.
How It Works & Privacy
- โข What is sent. Only what's needed for the task โ a ticket transcript (subject + public replies) for help-desk features, or a product's fields (name, description, category, pricing, stock signals, image count) for Product Insights. The request goes over HTTPS to the provider you selected.
- โข What is never sent. Staff-only internal notes are stripped from ticket transcripts. Nothing at all leaves your server when AI is switched off or unconfigured.
- โข Your key stays yours. The API key is encrypted at rest and used only to authenticate your own requests to your chosen provider.
- โข Fails safe. Every AI request has a 45-second timeout, and any provider error is logged and swallowed โ the feature simply returns nothing rather than breaking the page. Automatic triage is best-effort and never blocks ticket creation or replies.
- โข Data handling beyond your server is governed by your chosen provider's terms โ review Anthropic's, OpenAI's or Google's data-usage policy before enabling AI on sensitive data.
Help Desk & Customer Portal
Posify includes a built-in support desk for your team plus a customer-facing portal and a public help centre. This is the module the AI Assistant's help-desk features plug into, but it works perfectly well on its own without AI.
๐๏ธ Agent inbox
- โ Tickets with categories, priority & status
- โ Assign tickets to team members
- โ Threaded replies, attachments & internal notes
- โ Shared & personal canned replies
๐ Customer portal & help centre
- โ Customers raise & track their own tickets
- โ Public help centre anyone can browse
- โ Served at
/portal&/helpby default - โ Optional dedicated subdomain
Optional: serve the portal from its own subdomain. By default the portal and help centre live under /portal and /help on your main domain. To serve them from a subdomain instead (e.g. support.example.com), set in .env:
PORTAL_DOMAIN=support.example.com
# For one shared login across the main app and the subdomain,
# also set SESSION_DOMAIN to the shared parent:
SESSION_DOMAIN=.example.com
Point that host at the same app in your web server, then run php artisan optimize:clear. Route names are identical either way, so links adapt automatically.
REST API
Posify ships a token-authenticated REST API under /api/v1, built on Laravel Sanctum. It is what the staff mobile app talks to, and it is available for your own integrations. No extra setup is needed โ it is enabled on every install.
Getting a token
curl -X POST https://yourdomain.com/api/v1/login \
-H "Accept: application/json" \
-d "email=you@example.com&password=your-password"
# -> { "token": "1|abcdef...", "user": { ... } }
Send it on every subsequent request:
curl https://yourdomain.com/api/v1/products \
-H "Accept: application/json" \
-H "Authorization: Bearer 1|abcdef..."
Endpoint groups
| Group | Auth | What it covers |
|---|---|---|
| basic-info, categories, products, languages | None | Public catalog and store settings |
| login, register, forgot-password | None | Issue a token (throttled 10/min) |
| profile, orders | Bearer | The signed-in customer's own data only |
| staff/* | Bearer + permission | Store-wide: inventory, customers, tickets. Each endpoint checks the caller's role permissions |
per_page (max 100).
POST /api/v1/logout; you can also clear them from the database if a device is lost.
The full endpoint table, with every route and its description, is in README.md in the application root.
Staff Mobile App
Your download includes posify-app.zip โ the full Flutter source for an optional staff companion app (Android and iOS). It gives staff product and price lookup, camera barcode scanning, customer and order lookup, inventory and low-stock views, and the support desk on the shop floor.
โ Requirements
- Flutter 3.29.x or later
- Dart SDK
>=3.11.0 <4.0.0 - Android Studio or VS Code
- Git
- Android SDK (API 21+)
- Xcode 15+ (macOS only, for iOS)
- CocoaPods (iOS dependencies)
- Your Posify server reachable over HTTPS
Verify your setup with flutter doctor โ every item should show a green checkmark before you start. Publishing also needs a Google Play and/or Apple Developer account.
๐ Installation
Extract posify-app.zip, open the folder, and install dependencies:
cd posify-app
flutter pub get
Set your base URL (next section), then run it on a connected device or emulator:
flutter run
flutter run -d android # pick a target explicitly
flutter run -d ios
๐ Base URL setup
The app ships pointing at a placeholder and fails fast with a config error until you set your own domain. Open lib/utils/constants.dart and edit the ApiEndpoints class:
// lib/utils/constants.dart
class ApiEndpoints {
static const String baseUrl = String.fromEnvironment(
'API_BASE_URL',
defaultValue: 'https://pos.your-domain.com/api/v1', // replace this
);
Or leave the file alone and pass it per build โ this wins over the default:
flutter run --dart-define=API_BASE_URL=https://pos.your-domain.com/api/v1
flutter build apk --release --dart-define=API_BASE_URL=https://pos.your-domain.com/api/v1
/api/v1 prefix and use no trailing slash. Point it at the domain serving your Posify install.
To test against a backend on your own machine:
- Android emulator โ
http://10.0.2.2:8000/api/v1 - iOS simulator โ
http://127.0.0.1:8000/api/v1
Plain HTTP is allowed only for those two hosts; every other host must be HTTPS. A Herd/Valet .test domain will not work on the iOS simulator โ its self-signed certificate is untrusted.
โ๏ธ Change the app name
// android/app/src/main/AndroidManifest.xml
android:label="YourAppName"
// ios/Runner/Info.plist
<key>CFBundleName</key>
<string>YourAppName</string>
๐ฆ Change the package name
The app ships as com.axify.posify. Change it to your own before publishing โ the store rejects a package ID you do not own. Android uses the Kotlin Gradle DSL:
// android/app/build.gradle.kts
android {
namespace = "com.yourcompany.yourapp"
defaultConfig {
applicationId = "com.yourcompany.yourapp"
}
}
Then find-and-replace com.axify.posify across the project (Ctrl+Shift+R, or โ+Shift+R on macOS) and check these landed:
android/app/build.gradle.ktsandroid/app/src/main/AndroidManifest.xmlandroid/app/src/main/kotlin/โ the folder structure must mirror the new ID- iOS bundle identifier โ set in Xcode, see below
flutter clean && flutter pub get && flutter run
๐จ Change the app icon
Replace assets/icons/posify-app-icon.png with your own square PNG โ 1024ร1024, no transparency (iOS rejects an alpha channel). Then regenerate every size for both platforms:
dart run flutter_launcher_icons
No external icon generator needed โ flutter_launcher_icons is already set up under the flutter_launcher_icons: key in pubspec.yaml. Re-run it whenever you change the source image.
๐ค Build for Android
Step 1 โ Create a signing keystore. Back up the .jks file and its passwords somewhere safe and private: lose them and you cannot ship an update to an existing listing.
keytool -genkey -v -keystore ~/upload-keystore.jks \
-storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
Step 2 โ Create android/key.properties by copying android/key.properties.example and filling it in:
storePassword=your_store_password
keyPassword=your_key_password
keyAlias=upload
storeFile=/absolute/path/to/upload-keystore.jks
android/key.properties is missing. That is deliberate โ it stops a debug-signed build from ever reaching the Play Store, which Google would reject. Debug builds and flutter run are unaffected.
Step 3 โ Build. Use an AAB for the Play Store; an APK for direct install or sideloading:
# AAB โ Google Play Store
flutter build appbundle --release
# Output: build/app/outputs/bundle/release/app-release.aab
# APK โ direct install
flutter build apk --release
# Output: build/app/outputs/flutter-apk/app-release.apk
# Split APKs โ smaller download per device
flutter build apk --release --split-per-abi
๐ Build for iOS
Step 1 โ Install CocoaPods dependencies:
cd ios && pod install && cd ..
Step 2 โ Open the workspace (not the .xcodeproj):
open ios/Runner.xcworkspace
Step 3 โ Configure signing. Select the Runner target โ Signing & Capabilities โ set your Team, and change the Bundle Identifier to your own (e.g. com.yourcompany.posify).
Step 4 โ Archive and distribute:
flutter build ipa
Or from Xcode: set the scheme to Any iOS Device โ Product โ Archive โ in Organizer, Distribute App โ App Store Connect.
The same instructions, plus an API endpoint reference and security notes, are in README.md inside posify-app.zip.
Updating to a New Version
mysqldump) and copy your .env file and storage/app folder somewhere safe before you overwrite anything.
- Download the new release ZIP from your CodeCanyon downloads page.
- Put the site into maintenance mode:
php artisan down - Replace the application files, but keep these: your
.env,storage/(uploads and logs), andpublic/storageif it is a real symlink. - Reinstall dependencies:
composer install --no-dev --optimize-autoloader - Apply any new migrations:
php artisan migrate --force - Clear stale caches:
php artisan optimize:clear - Repair the uploads symlink if images 404:
php artisan posify:install-assets - Bring it back up:
php artisan up
storage/installed.lock. It is what tells Posify it is already set up. Removing it sends every visitor back to the installer.
If you run a queue worker, restart it after updating so it picks up the new code: php artisan queue:restart. See the Queue Worker section.
Third-Party Licenses
Posify POS bundles open-source libraries. Most use permissive MIT/BSD/Apache licenses; two are LGPL and worth knowing about:
vendor/ after composer install. Using them as-is places no obligation on your own code โ only modifying the libraries themselves would.
The full list of bundled third-party libraries and their licenses is in credits.txt in the application root.