Download the PHP package dragon-code/size-sorter without Composer

On this page you can find all versions of the php package dragon-code/size-sorter. 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 size-sorter

Product Size Sorter

The Dragon Code Product size sorting

Stable Version Unstable Version Total Downloads Github Workflow Status

Easily sort clothing size, height, bra size, furniture size and more

Installation

To get the latest version of Product Size Sorter, simply require the project using Composer:

Or manually update require block of composer.json and run composer update.

Compatibility

Note

This package can work outside the frameworks systems.

Compatibility Versions
PHP ^8.1
Laravel ^8.0, ^9.0, ^10.0
Symfony ^5.3, ^6.0

Usage

When calling a sort with common values, each element will be assigned to one of five groups:

  1. Letter clothing size (XXS, XS, M, L, etc.)
  2. Numerical size of clothes and shoes (9, 10, 44-46, 48, etc.)
  3. Bra size (70B, 75A, 80C, etc...)
  4. Overall dimensions of items (40x38x19 sm, etc.)
  5. Other values

You can see more examples in the test file.

Groups Order

By default, sizes are sorted by the following logical blocks:

  1. Letter clothing size (XXS, XS, M, L, etc.)
  2. Numerical size of clothes and shoes (9, 10, 44-46, 48, etc.)
  3. Bra size (70B, 75A, 80C, etc...)
  4. Overall dimensions of items (40x38x19 sm, etc.)
  5. Other values

But you can change the order by specifying identifiers as the third parameter:

The final array will be formed in the specified order:

You can also specify some groups. For example:

In this case, the first two logical groups will be sorted in the specified order, and the subsequent ones will be in ascending order:

License

This package is licensed under the MIT License.


All versions of size-sorter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
archtechx/enums Version ^0.3.1
dragon-code/support Version ^6.9
illuminate/collections Version ^8.75 || ^9.0 || ^10.0 || ^11.0
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 dragon-code/size-sorter contains the following files

Loading the files please wait ....