Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lehoangduc/wl-bootstrap
Integrating Laravel into WordPress
https://github.com/lehoangduc/wl-bootstrap
bootstrap laravel laravel5 php-library wordpress wordpress-plugin
Last synced: 3 months ago
JSON representation
Integrating Laravel into WordPress
- Host: GitHub
- URL: https://github.com/lehoangduc/wl-bootstrap
- Owner: lehoangduc
- License: mit
- Created: 2017-03-15T08:43:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T16:06:33.000Z (over 5 years ago)
- Last Synced: 2024-04-14T12:12:18.535Z (9 months ago)
- Topics: bootstrap, laravel, laravel5, php-library, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 51
- Watchers: 8
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
'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](http://opensource.org/licenses/MIT)
Copyright (c) 2017-present, Golr