Download the PHP package erdiko/wordpress without Composer

On this page you can find all versions of the php package erdiko/wordpress. 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 wordpress

erdiko-wordpress

You can use this module with any composer based php framework by simply running, composer require erdiko/wordpress.

Installation

1. Install WordPress

We recommend installing WordPress in /lib/wordpress or its own folder at the same level as your main site. For instance /wordpress and /[my-website]. However it can be anywhere as long is the codebase is accessible. Follow the WordPress docs on how to install WordPress.

Important If your WordPress codebase is in /lib/wordpress and /lib is at the same level as your vendor folder then you can skip the rest of step #1.

Add this to your codebase.

This could be added in a constants file, bootstrap file or index.php. Follow the conventions of your framework. If you are using Erdiko it should go in the /[my-website]/app/appstrap.php file.

2. Add the erdiko/wordpress package using composer

Usage

Here are some examples of how to use this package. See the source code for the full API.

To pull content from WordPress

$model = new \erdiko\wordpress\Model;
$post = $model->getPost(1);

To get an Author

$author = new \erdiko\wordpress\models\Author;
$author->getAuthor('name');

Get all posts

$content = new \erdiko\wordpress\models\Content;
$content->getAllPosts();

Create a full headless site with Erdiko

These additional instructions are for creating a complete headless blog using Erdiko. All CMS data is coming from WordPress and is rendered in a clean bootstrap based theme. We have included controllers, models, views and a full theme.

1. Install Erdiko Using composer, it is a very simple to create an erdiko project.

composer create erdiko/erdiko [my-project-name]

More information available at http://erdiko.org

2. Add your routes

Add the following lines to your routes.json file to enable the wordpress example and content controllers. It give you a FULL headless wordpress site. Use this as an example, extend the classes in your app or roll your own headless solution. Keep in mind, all that is really needed to pull WordPress data is to create a model that extends erdiko\wordpress\Model.

Update your /app/config/default/routes.json with:

Feel free to adjust accordingly.

3. Copy the default theme

We even included a sample theme that is bootstrap based. Copy the files from your vendor folder vendor/erdiko/wordpress/app/themes/ and vendor/erdiko/wordpress/public/default/themes/ into your app/themes/ and public/default/themes folder respectively.

Theme is based on css from the Start Bootstrap theme.

4. Add a symlink for the uploaded files (optional)

Notes

We welcome your feedback. Let us know how we can improve this package.

If anyone is interested in helping us port this to Laravel or Symfony please send us a message. We would love to support more frameworks!

Sponsored by Arroyo Labs


All versions of wordpress with dependencies

PHP Build Version
Package Version
No informations.
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 erdiko/wordpress contains the following files

Loading the files please wait ....