wordplate | It 's like building | Content Management System library
kandi X-RAY | wordplate Summary
kandi X-RAY | wordplate Summary
WordPlate is a wrapper around WordPress. It's like building any other WordPress website with themes and plugins. Just with sprinkles on top.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wordplate
wordplate Key Features
wordplate Examples and Code Snippets
Community Discussions
Trending Discussions on wordplate
QUESTION
I can't figure out how to register a local directory as a composer package. I found lots of information about registering a local folder that is either a git repository or a composer package or even a zip hosted somewhere.
However I want to register a folder on my local machine, residing in the same repository as my wordpress installation (using wordplate) that is neither a git repository nor a composer package as it doesn't contain any composer.json.
What I try at the moment is to register it like this under repositories
:
ANSWER
Answered 2019-Jun-10 at 17:37You can use the path repository to install packages from a different path into your project.
However I want to register a folder on my local machine, residing in the same repository as my wordpress installation (using wordplate) that is neither a git repository nor a composer package as it doesn't contain any composer.json.
For this to work, your plugin inside the folder will need a composer.json, though. This is necessary for composer to recognize this folder as a package in the first place. Fortunately, it can be as simple as this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wordplate
http://localhost:8000/ - Your website.
http://localhost:8000/wordpress/wp-admin - The administration dashboard.
Upgrading from 10 to 11. Upgrading from 9 to 10. Upgrading from 8 to 9. Upgrading from 7 to 8. Upgrading from 6 to 7. Upgrading from 5 to 6. Upgrading from 4 to 5.
WordPlate now requires PHP 8.0 or later.
Bump the version number in the composer.json file to ^11.0.
Run composer update in the root of your project.
WordPlate now requires PHP 7.4 or later.
Bump the version number in the composer.json file to ^10.0.
Rename WP_ENV to WP_ENVIRONMENT_TYPE in the environment file.
Rename WP_THEME to WP_DEFAULT_THEME in the environment file.
Rename WP_URL to WP_HOME in the environment file (if it exists).
If you're using the WP_CACHE environment variable you'll need to define it in the public/wp-config.php file: $application->run(); +define('WP_CACHE', env('WP_CACHE', false)); $table_prefix = env('DB_TABLE_PREFIX', 'wp_');
Optional: Rename WP_PREFIX to DB_TABLE_PREFIX in the following files: .env .env.example public/wp-config.php
Run composer update in the root of your project.
Bump the version number in the composer.json file to ^9.0.
Copy the public/mu-plugins/mu-plugins.php file into your project.
Update the public/.gitignore file to allow the new mu-plugins.php file: -mu-plugins/ +mu-plugins/* +!mu-plugins/mu-plugins.php
Run composer update in the root of your project.
WordPlate now requires PHP 7.2 or later.
Bump the version number in the composer.json file to ^8.0. Note: WordPlate 8.0 requires WordPress 5.3 or later.
Laravel's helper functions is now optional in WordPlate. If you want to use the functions, install the laravel/helpers package, with Composer, in the root of your project: composer require laravel/helpers
Laravel's collections are now optional in WordPlate. If you want to use collections, install the tightenco/collect package, with Composer, in the root of your project: composer require tightenco/collect
The mix helper function is now optional in WordPlate. If you want to use the function, install the ibox/mix-function package, with Composer, in the root of your project: composer require ibox/mix-function
Replace any usage of asset, stylesheet_url and template_url functions with WordPress's get_theme_file_uri function.
Replace any usage of stylesheet_path and template_path functions with WordPress's get_theme_file_path function .
The base_path and template_slug functions have been removed.
Run composer update in the root of your project.
Bump the version number in the composer.json file to ^7.0. Note: WordPlate 7.0 requires WordPress 5.0 or later.
Update the realpath(__DIR__) to realpath(__DIR__.'/../') in the wp-config.php file.
If your public directory isn't named public, add the following line to the wp-config.php file: $application->setPublicPath(realpath(__DIR__));
Run composer update in the root of your project.
Bump the version number in the composer.json file to ^6.0.
Update the realpath(__DIR__.'/../') to realpath(__DIR__) in the wp-config.php file.
Run composer update in the root of your project.
Bump the version number in the composer.json file to ^5.0.
Copy and paste the contents of the wp-config.php file into your application. Note: Make sure you don't overwrite any of your custom constants.
Run composer update in the root of your project.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page