Welcome to our persistent browser-based RPG! This guide will help you get started quickly.
- PHP 8.3 or higher
- Composer
- MySQL or PostgreSQL database
- Node.js and NPM (for frontend assets)
git clone https://github.com/liberu-browser-game/browser-game-laravel.git
cd browser-game-laravel# Install PHP dependencies
composer install
# Install JavaScript dependencies
npm install# Copy environment file
cp .env.example .env
# Generate application key
php artisan key:generateEdit .env file with your database credentials:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=browser_game
DB_USERNAME=your_username
DB_PASSWORD=your_password# Run migrations
php artisan migrate
# Seed the database with game content
php artisan db:seed --class=GameSeeder
php artisan db:seed --class=GameContentSeeder
php artisan db:seed --class=AchievementSeedernpm run build
# or for development with hot reload
npm run dev# Using PHP built-in server
php artisan serve
# Or using Laravel Octane (RoadRunner)
php artisan octane:start
# Or using Docker
docker-compose upVisit http://localhost:8000 in your browser!
- Register a new account
- Verify your email (if enabled)
- Log in to the game
- First thing you see is the daily reward
- Click "Claim Reward" to get starting gold and XP
- Come back daily for streak bonuses!
- View your level, health, mana
- See your current gold and resources
- Check your character stats
- Go to the Quest Board
- Accept a beginner quest like "Defeat the Goblins"
- Complete the quest for XP and items
- Navigate to the Combat Arena
- Select an opponent level (start with level 1-2)
- Click "Start Battle" to engage in combat
- Watch the battle log to see what happens
- Heal if your health gets low!
- Check what other players are selling
- Sell items you don't need
- Buy equipment to improve your stats
- Visit the Crafting Workshop
- See available recipes
- Gather materials from quests
- Craft your first item!
- Browse available guilds
- Join one that fits your playstyle
- Participate in guild activities
- Make friends and team up
The optimal daily routine:
- Login → Claim daily reward
- Quests → Complete 3-5 quests
- Combat → Battle to gain XP and gold
- Craft → Make useful items
- Trade → Sell unwanted items, buy upgrades
- Social → Interact with guild members
- Compete → Check leaderboards and aim higher
- Always heal before important battles
- Healing costs 50 gold
- Don't fight enemies more than 2-3 levels above you
- Battle regularly to level up faster
- Save gold early for equipment
- Sell common items, keep rare ones
- Check marketplace for deals daily
- Crafting can be more profitable than buying
- Focus on quests for steady XP
- Allocate stat points wisely (can't respec easily)
- Join an active guild for bonuses
- Complete daily tasks for streak rewards
- Active guilds provide better experience
- Help lower-level players for karma
- Trade with friends for better deals
- Participate in guild events
- Equip items in 6 slots: Weapon, Armor, Helmet, Boots, Gloves, Accessory
- Each item provides stat bonuses
- Higher rarity = better stats
- Check item requirements before buying
- Learn recipes from quests or NPCs
- Gather materials from battles and quests
- Success rate varies by recipe
- Failed crafts still consume materials
- Compete in 4 categories: Level, PvP, Quests, Wealth
- Top 20 players displayed
- Rankings update regularly
- Seasonal rewards (coming soon)
- Learn new skills as you level up
- Skills cost mana to use
- Cooldowns prevent spam
- Higher skill levels = more power
Database connection error:
# Check your .env database settings
# Make sure MySQL/PostgreSQL is running
php artisan config:clear
php artisan cache:clearAssets not loading:
npm run build
php artisan optimize:clearLivewire not working:
php artisan livewire:publish --config
php artisan livewire:publish --assetsPermissions error:
chmod -R 775 storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache# Run tests
php artisan test
# Run linter
./vendor/bin/pint
# Clear all caches
php artisan optimize:clear
# Reset database (CAUTION: Deletes all data)
php artisan migrate:fresh --seed- Documentation: See
/docsdirectory - Issues: Report on GitHub
- Discord: Join our community server
- Email: support@liberu.co.uk
Once you're comfortable with the basics:
- Explore all game systems
- Optimize your character build
- Compete for top leaderboard positions
- Help grow the community
- Suggest new features!
Have fun and happy gaming! 🎮✨