Download the PHP package thewildfields/tavriia without Composer

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

Tavriia

A clean, typed, PSR-compliant OOP abstraction layer over WordPress core functions. Ships as a Composer package consumed by WordPress plugins.

PHP 8.2+ PSR-12


What is Tavriia?

Tavriia is a framework that provides typed wrappers, contracts, and DTOs over raw WordPress APIs. It is not a plugin. It is a Composer library you pull into your plugin projects.

Without Tavriia:

With Tavriia:


Installation

Requires PHP 8.2+ and WordPress (no minimum version enforced).


Quick Start

1. Create a module

2. Create posts with typed DTOs

3. Query posts fluently

4. Make HTTP requests


Features

Area Classes Wraps
Posts PostFactory, PostRepository, MetaManager wp_insert_post, wp_update_post, get_post, get_post_meta
Taxonomy TermFactory, TermRepository, TermMetaManager wp_insert_term, get_terms, wp_get_object_terms
Queries QueryBuilder, QueryResult WP_Query, get_posts
HTTP HttpClient, RequestBuilder, ResponseProcessor wp_remote_get, wp_remote_post, wp_remote_request
REST RestServer, RestRouteBuilder, RestResponse, AbstractRestController register_rest_route, WP_REST_Response, WP_Error
Admin AdminMenuPage, AdminNotice add_menu_page, admin_notices
Modules AbstractModule WordPress hooks lifecycle

Design Principles

WP_Error never escapes the framework. Every wrapper converts WP_Error into a typed exception at the WordPress boundary. Plugin code never calls is_wp_error().

Factories return IDs, repositories return DTOs. PostFactory::create() returns int. PostRepository::findById() returns PostDTO or throws PostNotFoundException.

All concrete classes are final. Only AbstractModule and abstract base classes are non-final.

All DTOs are readonly. Immutable value objects with named constructors where appropriate.

Typed meta accessors. MetaManager::getString(), ::getInt(), ::getBool(), ::getArray() — never raw meta values.


Documentation


Contributing

This is a private framework package for The Wild Fields. See CLAUDE.md for architectural guidelines.


License

MIT


All versions of tavriia with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 thewildfields/tavriia contains the following files

Loading the files please wait ...