Download the PHP package agilo/medusawp without Composer

On this page you can find all versions of the php package agilo/medusawp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package medusawp

MedusaWP

MedusaWP

MedusaWP enables you to use WordPress as a headless CMS or as a storefront for your Medusa shop.

MedusaWP is released under the MIT license. PRs welcome! X (formerly Twitter) Follow

Node.js ^20 WordPress ^5.6 PHP Version ^7.4 Composer ^1

MedusaWP is a powerful tool that seamlessly integrates your Medusa e-commerce store with WordPress, offering a range of features to simplify your e-commerce management. We also provide a rich set of Medusa-oriented functions for you to utilize within your WordPress theme.

You can connect to your existing Medusa store and effortlessly import its data into WordPress. You have full visibility into the sync progress and can easily troubleshoot any issues that may arise during the synchronization process. Data health checks ensure that your synced items are error-free and successfully imported into WordPress. Managing media assets is a breeze with the ability to import Medusa thumbnails directly into the WordPress Media Library. You can also manage and display Medusa data as custom post types within your WordPress site.

For a seamless shopping experience, the plugin automatically creates a cart for customers who land on your site. A country switcher functionality is also included, allowing cart region updates based on the selected country code.

When needed, you can remove all synced data and disconnect from Medusa effortlessly.

Unlock the full potential of your Medusa store with the MedusaWP plugin and streamline your e-commerce operations.

Features

Prerequisites

How To Install

Medusa Plugin

  1. In the root of your Medusa backend, run the following command to install the medusa-plugin-wordpress plugin:

  2. Add the plugin to your medusa-config.js file at the end of the plugins array:

  3. Next, configure the medusa-plugin-wordpress plugin that you added in the previous step. For example:

Configuration Options

The plugin can be configured with the following options:

WordPress Plugin

  1. In the root directory of your WordPress installation, run the following command to install the plugin using Composer:

  2. Log in to your WordPress admin dashboard using your administrator credentials.

  3. After successful installation, click the "Activate" button to activate the plugin.

  4. To finish the plugin setup, proceed to the How To Use steps.

How To Use

  1. Run the following command in the directory of the Medusa backend to run the backend:

  2. After you have logged into your WordPress site, navigate to the MedusaWP plugin settings page, which can be found in the WordPress admin menu.

  3. Connect your Medusa e-commerce store and your WordPress instance. On the default MedusaWP plugin screen enter your Medusa shop URL and credentials - email and password and press "Connect" button.

[!NOTE] If necessary, you can always disconnect from your Medusa shop by opening a dropdown in the upper-right corner, pressing the "Disconnect" button, and confirming your decision.

  1. When the connection with Medusa is established, sync your Medusa e-commerce data with WordPress by clicking the "Sync" button. You can also choose to import Medusa thumbnails into the WordPress Media Library directly with the data sync (this may slightly slow down your data sync process), or you can import thumbnails separately later using the "Import" button.

[!NOTE] It is possible to remove all your synced Medusa data from your WordPress site at any time using the "Remove" button. We recommend that you backup your data before proceeding with this action.

  1. Once the data synchronization is complete, configure the default settings of the MedusaWP plugin to suit your needs. In the dropdown, you can select the default country, which will be used to automatically create a cart in the corresponding region when a customer lands on the site.

  2. Verify that the plugin is working as expected by visiting your website and using its features.

That's it! You have successfully installed and set up the MedusaWP plugin. Enjoy using it in your projects and on your WordPress website.

Contributing

We welcome contributions from the community to help make this project even better. Please feel free to open pull requests or issues. Thank you for considering contributing, and we look forward to collaborating with you!

Below you can find the plugin development guide that will help you get started with running MedusaWP in your local environment.

Plugin Development

Prerequisites

After you have installed the requirements, you will need to add a host entry for the project by appending the following line to your /etc/hosts file:

Running Locally

Follow these step-by-step instructions to run the project locally:

  1. Fulfill everything mentioned in the prerequisites above
  2. git clone https://github.com/Agilo/medusawp.git - clone the repo
  3. cd medusawp - position into the project directory
  4. cp .env.example .env - set up docker-compose environment variables
  5. cp ./dev/medusa/.env.example ./dev/medusa/.env - set up Medusa environment variables
  6. npm i - install all dependencies
  7. npm run addcert -w wordpress - add a self-signed certificate for medusawp.test
  8. npm run build -w wordpress - build WordPress
  9. composer install -d ./wordpress-plugin - install Composer dependencies for the WordPress plugin
  10. docker-compose --profile wp --profile medusa up - start WordPress and Medusa Docker containers
  11. Open a new terminal tab
  12. npm run seed -w medusa - seed Medusa DB
  13. npm run migrate -w medusa - run Medusa migrations
  14. npm start - build the Medusa plugin and start the Medusa dev server and Medusa plugin watcher

WordPress is now available at https://medusawp.test and Medusa Admin dashboard at http://localhost:9000/app.

Default credentials for Medusa Admin are:

Default credentials for WordPress are:

Available Commands

Docker Services

Docker services are defined in docker-compose.yml file. There are 2 separate profiles defined in the file:

Most of the time, you will want to run both profiles at the same time. But if you want to run only one of them, you can do so by running docker-compose --profile <profile> up. For example, to start only WordPress, you would run docker-compose --profile wp up.

WordPress
Medusa

Additional Resources

License

This project is licensed under the MIT License.

Credits

MedusaWP is developed and maintained by AGILO. Huge thanks to all contributors.


All versions of medusawp with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
composer/installers Version ^1.0 || ^2.0
guzzlehttp/guzzle Version ^7.8
guzzlehttp/psr7 Version ^2.0
illuminate/validation Version ^8.0 || ^9.0 || ^10.0
yahnis-elsts/plugin-update-checker Version ^5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package agilo/medusawp contains the following files

Loading the files please wait ....