Home
Softono

Wl Bootstrap

Open source MIT PHP
53
Stars
15
Forks
0
Issues
7
Watchers
7 years
Last Commit

 About Wl Bootstrap

Integrating Laravel into WordPress

Platforms

Web Self-hosted

Languages

PHP

Links

Need Help Installing Wl Bootstrap?

We provide expert installation service for this software. Our team will install, configure, and secure Wl Bootstrap on your server. plans start at just $30.

Wl Bootstrap

View on GitHub

WordPress Laravel Bootstrap

A WordPress plugin helps you use functions, methods, libraries of Laravel in any WordPress projects

Requiments

  • Laravel >= 5.2
  • WordPress >= 4.6

Installation

  • Copy "wl-bootstrap" folder into "wp-content/plugins"
  • Define Laravel source code path in "wp-config.php" as a constant:
define('LARAVEL_PATH', '/srv/www/laravel-example-project'); // Make sure this is pointed to same server

Usage

You can use all codes in your Laravel project, build Single Sign On with less effort on same/subdomain and so on...

<?php

// Helper
$array = array_add(['name' => 'Desk'], 'price', 100);

// Session
session(['chairs' => 7, 'instruments' => 3]);

// Authentication
Auth::check();

// Query Builder
$users = DB::table('users')->get();

// Eloquent
$flights = App\Flight::where('active', 1)
               ->orderBy('name', 'desc')
               ->take(10)
               ->get();

Contributing

All contributions are welcome to help improve WL-Bootstrap.

License

MIT

Copyright (c) 2017-present, Golr