1. Go to this page and download the library: Download devuri/wp-env-config library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devuri / wp-env-config example snippets
use Urisoft\App\Setup;
for WordPress
*
* @link https://codex.wordpress.org/Editing_wp-config.php
*
* @package WordPress
*/
Setup::init(__DIR__)->config(); // production
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = env('DB_PREFIX');
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
// Sets up WordPress.
Setup::init(__DIR__)->config(); // production
Setup::init(__DIR__)->config('development'); // development