📕
Sprnva Docs
  • Introduction
  • What's New?
  • Installation
    • Requirements
    • Download Sprnva zip no composer required
    • Install Sprnva Using Composer
    • Setup Config
  • Deployment
  • File Structure
  • Database
    • Select
    • SelectLoop
    • Insert
    • Update
    • Delete
    • Query
    • Seeder
    • Paginate
    • With
    • andFilter
    • withCount
    • get
  • Query Builder
  • Migration
    • INSTANCES
      • NEW
      • RENAMETABLE
      • DROP
      • CHANGE
    • DUMPS
      • dump
      • dump prune
    • MAKE
    • MIGRATE
      • migrate
      • migrate fresh
    • ROLLBACK
  • Routing
    • with parameter
    • multiple parameters
    • with closure
    • group
    • controller grouping
  • Controllers
    • methods
  • Views
    • Passing Parameters
  • Validation
    • validate
      • validation type
  • Authentication
  • Alert Messages
  • Default Helpers
  • CSRF Protection
  • Email
  • Packages
    • Fortify
  • Themes and Templates
Powered by GitBook
On this page
  1. Installation

Install Sprnva Using Composer

If your computer already has PHP and Composer installed, you may create a new Sprnva project by using Composer directly :

composer create-project sprnva/sprnva example-app

cd example-app
  • After the application has been created, you may start setting up the config with your credentials.

  • set 'base_url' => 'example-app' ('example-app' is the directory name of your application)

  • if you don't want to add login and registration to your application:

    • in config.php set database 'name' => ''

  • if you want to add login and registration to your application:

    • after you're done setting up config.php, create a database and the name should be the same to your credentials in config.php

    • then we will migrate the default tables. In your browser type this in your url:

    localhost/example-app/migration
    • when the migration module shows, click the fresh button to migrate the default tables.

    • then add the authentication called fortify via composer :

    composer require sprnva/fortify
    
    php vendor/sprnva/fortify/serve
    
    # or you can use the
    php fortify_serve
  • finally, you can now build your desired application using sprnva.

PreviousDownload Sprnva zip no composer requiredNextSetup Config

Last updated 2 years ago