Download the PHP package x-wp/wc-data-attribute-tax without Composer

On this page you can find all versions of the php package x-wp/wc-data-attribute-tax. 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 wc-data-attribute-tax

WC Data Attribute Tax

WooCommerce attribute taxonomy data objects

[![Packagist Version](https://img.shields.io/packagist/v/x-wp/wc-data-attribute-tax?label=Release&style=flat-square)](https://packagist.org/packages/x-wp/wc-data-attribute-tax) ![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/x-wp/wc-data-attribute-tax/php?label=PHP&logo=php&logoColor=white&logoSize=auto&style=flat-square) ![Static Badge](https://img.shields.io/badge/WP-%3E%3D6.5-3858e9?style=flat-square&logo=wordpress&logoSize=auto) ![Static Badge](https://img.shields.io/badge/WC-%3E%3D9.0-7f54b3?style=flat-square&logo=woocommerce&logoSize=auto) [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/x-wp/wc-data-type-attribute-tax/tests.yml?label=Tests&event=push&style=flat-square&logo=githubactions&logoColor=white&logoSize=auto)](https://github.com/x-wp/wc-data-attribute-tax/actions/workflows/tests.yml) [![codecov](https://codecov.io/gh/x-wp/wc-data-type-attribute-tax/graph/badge.svg?token=YS1OMUOQWW)](https://codecov.io/gh/x-wp/wc-data-type-attribute-tax)

This package provides XWC_Attribute_Tax data objects for working with WooCommerce product attribute taxonomies. Built on the x-wp/wc-data-type framework, it wraps WooCommerce's wc_*_attribute() functions in a model-driven CRUD workflow with typed properties, a dedicated factory, and convenience helpers.

Installation

[!TIP] We recommend using automattic/jetpack-autoloader with this package to reduce autoloading conflicts in WordPress environments.

Usage

Loading an attribute

Working with attribute properties

Converting to WC_Product_Attribute

Utility functions

Testing

The package ships with a PHPUnit suite that boots a WordPress + WooCommerce test environment.

Local prerequisites:

Run the suite with:

To prepare the local WordPress test environment first:

composer test:install starts the MySQL service, downloads WordPress, installs WooCommerce, and prepares the WordPress test suite under .cache/wp-tests.

To fully reset the local test environment:

That command stops the test containers and removes the cached WordPress test files.

Documentation

Core classes:

For framework-level documentation, see x-wp/wc-data-type.


All versions of wc-data-attribute-tax with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
x-wp/wc-data-type Version ^1.4
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 x-wp/wc-data-attribute-tax contains the following files

Loading the files please wait ...