Download the PHP package tacowordpress2/tacowordpress without Composer
On this page you can find all versions of the php package tacowordpress2/tacowordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tacowordpress2/tacowordpress
More information about tacowordpress2/tacowordpress
Files in tacowordpress2/tacowordpress
Package tacowordpress
Short Description WordPress custom post types that feel like CRUD models
License MIT
Homepage https://tacowordpress.github.io/tacowordpress/
Informations about the package tacowordpress
Taco
WordPress custom post types that feel like CRUD models
See the wiki for complete documentation.
Setup
-
Add Taco and Util to
composer.json
-
Include Composer’s autoload in
wp-config.php
- Initialize Taco in
functions.php
Usage
Once you have Taco setup, you can start creating your custom post types. Follow the getting started instructions for a simple example.
PHPUnit tests
If you want to contribute, you should create corresponding PHPUnit tests for your functionality or fix. You will need to create a database and configure db-config.php with your database credentials. Then pull down the latest Composer updates which includes PHPUnit, and run the PHPUnit tests:
$ composer update
$ cd tests
$ ../vendor/bin/phpunit
If you want to login to the WordPress admin UI for the test suite, you need to:
-
Create a hosts entry:
127.0.0.1 taco-phpunit-test.vera
-
Create an Apache vhosts entry, modifying the path as necessary. If you are having trouble, make sure that your vhost file is being loaded by Apache.
<VirtualHost *:80> DocumentRoot "/path/to/taco/tests/lib/wordpress" ServerName taco-phpunit-test.vera <Directory /path/to/taco/tests/lib/wordpress> AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
-
Visit http://taco-phpunit-test.vera/wp-admin/
u: admin p: admin
Changelog
v1.1.2
- Adding formatting for several content types for revisions: addmany, links, and legacy addmany and addbysearch
v1.1.1
- Making subpost revisions work
v1.1
- Adding hooks to allow meta queries to work in the REST API
v1.0
- Updating to work with PHP 7
- Adding postmeta revisions
v0.9
- Tagging last version of Taco to run on PHP 5