PHPackages                             ixa/wordpress-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ixa/wordpress-core

ActiveWordpress-core[Framework](/categories/framework)

ixa/wordpress-core
==================

WordPress fork that works with Composer

4.4.4(9y ago)123392GPL-2.0+PHPPHP &gt;=5.3.2

Since Oct 23Pushed 9y ago2 watchersCompare

[ Source](https://github.com/cesarhdz/ixa-wordpress-core)[ Packagist](https://packagist.org/packages/ixa/wordpress-core)[ Docs](http://wordpress.org/)[ RSS](/packages/ixa-wordpress-core/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (23)Used By (2)

Ixa WordPress Core
==================

[](#ixa-wordpress-core)

[WordPress](http://wordpress.org/) fork that works with [Composer](http://getcomposer.org/).

As of version 4.0, WordPress doesn't have Composer support. Using this fork you get a WordPress ready to be use as dependency in its own folder, and don't have to wait [until WordPress core have built-in support](http://core.trac.wordpress.org/attachment/ticket/23912/composer.3.patch).

Installation
------------

[](#installation)

```
require: {
	"ixa/wordpress-core" : "~4.0"
}

```

If you are starting a new project, you can use [Ixa WordPress Starter](https://github.com/cesarhdz/ixa-wordpress-starter) to get WordPress core and configuration files, running only one command

```
$ composer create-project ixa/wordpress-starter

```

Configuration
-------------

[](#configuration)

A tipical file tree using WordPress and Composer is

```
+ wp-content 		# Defined by WP_CONTENT_DIR, WP_CONTENT_URL
  	+ themes
  	  	+ my-theme
  	+ uploads
  	+ plugins
+ wordpress 		# WordPress core
+ vendor
- wp-config.php 	# Main config file
- index.php			# Must require './wordpress/wp-blog-header.php'

```

In order to run WordPress the following constants must be set in `wp-config.php` ([example](https://github.com/cesarhdz/ixa-wordpress-core/blob/master/example/wp-config.php))

- `WP_HOME`, URL of public area.
- `WP_SITEURL`, URL of WordPress instalation
- `WP_CONTENT_DIR` and `WP_CONTENT_URL`, Path and url for wp-content folder. `themes` and `languages` folders must be within `wp-content` and cannot be configurable

additionally, `wp-config.php` is a good place to require `vendor/autoload.php`.

And finally the index file must have the following:

```
