Download the PHP package open-ecommerce/masters-wp without Composer

On this page you can find all versions of the php package open-ecommerce/masters-wp. 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 masters-wp

WordPress Starting base template

This is the repository integrating some other repos about adding composer to wp and integrating foundation to a wp theme with the idea of simplify the starting process. Later on you can select the wp plugins you want to have changing the composer.json file but this are the plugins we are using:

You can see a demo at:

http://wp-brixton.oe-lab.tk/

We are using the following repos with the real hard work:

for composer install https://github.com/roots/bedrock that uses: https://github.com/johnpbloch/wordpress-core-installer to use plugins as vendors and https://github.com/vlucas/phpdotenv to have the beautiful .env configuration

for the foundation theme that we call oe-brixton, the amazing work of Ole Fredrik Lie.

we are using the code instead of forking to have our own configuration but I will recommend to take the latest version from the Ole's repo. https://github.com/olefredrik/foundationpress

for the bootstrap theme that we call oe-kennington, the amazing work of Per Thykjaer Jensen.

we are using the code instead of forking to have our own implementation but I will recomment to clone the lates version from this repo. https://github.com/asathoor/maat-or-the-improved-bootstrap

You can see some in progress documentation once you finish with the installation

https://github.com/open-ecommerce/masters-wp/blob/master/docs/working-on-it.md

How to install and eventualy deploy :)

Installation

  1. Create a new project in a new folder for your project:

    composer create-project open-ecommerce/masters-wp your-project-folder-name

  2. Copy .env.example to .env and update environment variables:

    • DB_NAME - Database name
    • DB_USER - Database user
    • DB_PASSWORD - Database password
    • DB_HOST - Database host
    • WP_ENV - Set to environment (development, staging, production)
    • WP_HOME - Full URL to WordPress home (http://example.com)
    • WP_SITEURL - Full URL to WordPress including subdirectory (http://example.com/wp)
    • AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT

    If you want to automatically generate the security keys (assuming you have wp-cli installed locally) you can use the very handy [wp-cli-dotenv-command][wp-cli-dotenv]:

    wp package install aaemnnosttv/wp-cli-dotenv-command

    wp dotenv salts regenerate

    Or, you can cut and paste from the [Roots WordPress Salt Generator][roots-wp-salt].

  3. Create local DB with your tool of preference I like wp-cli so I will just run the wp command that will use what ever db credentials we put in the .env file wp db create

  4. Add theme(s) in web/app/themes as you would for a normal WordPress site.

  5. Set your site vhost document root to /path/to/example/web/ (/path/to/example/current/web/ if using deploys)
  1. Access WP admin at http://example.com/wp/wp-admin

Deploys

There are two methods to deploy Bedrock sites out of the box:

Any other deployment method can be used as well with one requirement:

composer install must be run as part of the deploy process.

Documentation

Bedrock documentation is available at https://roots.io/bedrock/docs/.

Now you need to choose the theme you want to use we put 2 themes in this repo:

oe-brixton based in foundation 4

As I said it is forked from Fredrik repo: https://github.com/olefredrik/foundationpress

This is a starter-theme for WordPress based on Foundation 6, the most advanced responsive (mobile-first) framework in the world. The purpose of FoundationPress, is to act as a small and handy toolbox that contains the essentials needed to build any design. FoundationPress is meant to be a starting point, not the final product.

more info about oe-brixton documentation

oe-kennington based in bootstrap 4

This theme it is a fork of Maat theme repo and customized for our own needs.

more info about oe-kennington documentation

Prerequisites

You will need WP-CLI installed in your box with a lamp (mysql, apache, php etc)

Installing cli in your system:

other options

If you can't run curl in your shared server just download wp-cli.phar and upload the file using ftp

Then, you need to make the file executable:

The final step is to move the file to a folder, so that you can execute it from anywhere. Renaming the file to something easy to remember and type is also a good idea; this is the reason why wp is the most commonly used name:

Instructions to make the wordpress work in your dev box

clone the master branch of this repo

(or to the ssh address if you have a sshkey)

navigate to the htdocs forder inside master-wp

get latest version of wp for your locale

(choose your locale from this site: http://wpcentral.io/internationalization/)

install wp for your db credentials

(change 'mynewwpdb' with the name of db you want create in the mysql server and your own credentials)

create the db based in the just created wp-config (only if you haven't created the db manualy)

install and configure wp

install the plugins via composer

We added: "config": { "secure-http": false } in the composer.json, to avoid problems getting http repositories in some shared servers.

activate all plugins using wp-cli

install test unit demo data

you can pull the latest version from the repo with curl:

or with php readfile:

I added also our version of the wptest call oe-dumy-sample into this repo just go to to the wp folder and import all with wp

or

and then delete the file

add the domain to your dev box

at this point you should be having a wp installed and configured

next step is to build the wp foundation theme you can check the full doc in the foundationPress repo but a quick reminder

While you're working on your project, run:

3. For building all the assets, run:

Build all assets minified and without sourcemaps:

about .htaccess files


All versions of masters-wp with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
composer/installers Version ~1.0.12
vlucas/phpdotenv Version ^2.0.1
johnpbloch/wordpress Version 4.7.2
oscarotero/env Version ^1.0
roots/wp-password-bcrypt Version 1.0.0
wpackagist-plugin/wordpress-importer Version ~0.6
wpackagist-plugin/vimeography Version ~1.4
wpackagist-plugin/siteorigin-panels Version dev-trunk
wpackagist-plugin/so-widgets-bundle Version ~1.8
wpackagist-plugin/w3-total-cache Version ~0.9
wpackagist-plugin/rest-api Version ~2.0-beta13
wpackagist-plugin/angularjs-for-wp Version dev-trunk
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 open-ecommerce/masters-wp contains the following files

Loading the files please wait ....