Download the PHP package ycdev/paper-size without Composer

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

PaperSize

A PHP class for managing paper formats and their conversions.

Installation

Supported Paper Formats

ISO Formats

Format Dimensions (mm) Description
A0 841 × 1189 Largest standard ISO format
A1 594 × 841 Half of A0
A2 420 × 594 Half of A1
A3 297 × 420 Half of A2
A4 210 × 297 Standard paper size
A5 148 × 210 Half of A4
A6 105 × 148 Half of A5
A7 74 × 105 Half of A6
A8 52 × 74 Half of A7
A9 37 × 52 Half of A8
A10 26 × 36 Half of A9

B Series (ISO)

Format Dimensions (mm) Description
B0 1000 × 1414 Largest B series format
B1 707 × 1000 Half of B0
B2 500 × 707 Half of B1
B3 353 × 500 Half of B2
B4 250 × 353 Half of B3
B5 176 × 250 Half of B4
B6 125 × 176 Half of B5
B7 88 × 125 Half of B6
B8 62 × 88 Half of B7
B9 44 × 62 Half of B8
B10 31 × 44 Half of B9

C Series (ISO)

Format Dimensions (mm) Description
C0 917 × 1297 Largest C series format
C1 648 × 917 Half of C0
C2 458 × 648 Half of C1
C3 324 × 458 Half of C2
C4 229 × 324 Half of C3
C5 162 × 229 Half of C4
C6 114 × 162 Half of C5
C7 81 × 114 Half of C6
C8 57 × 81 Half of C7
C9 40 × 57 Half of C8
C10 28 × 40 Half of C9

US Formats

Format Dimensions (mm) Description
US Letter 216 × 279 Standard US paper size
US Executive 184 × 267 Executive size
US Government Letter 203 × 267 Government documents
US Quarto 229 × 279 Quarto size
US Foolscap Folio 216 × 330 Foolscap folio size
US Half Letter 140 × 216 Half of US Letter
US Junior Legal 140 × 216 Junior legal size

French Formats (AFNOR)

Format Dimensions (mm) Description
Cloche 300 × 400
Pot 310 × 400
Tellière 340 × 440 Ancienne administration française
Couronne écriture 360 × 460
Couronne édition 370 × 470
Roberto 390 × 500 Dessin anatomique
Écu 400 × 520
Coquille 440 × 560 Surface proche du A2
Carré 450 × 560
Cavalier 460 × 620 Format publicitaire en presse
Quart-raisin 250 × 325 Papier à dessin scolaire
Demi-raisin 325 × 500 Dessin
Raisin 500 × 650 Dessin
Double raisin 650 × 1000
Grappe de raisin 4000 × 2600 8 raisins
Jésus 560 × 760 Atlas, sentiers et chemins
Soleil 600 × 800
Colombier affiche 600 × 800
Colombier commercial 630 × 900
Petit Aigle 700 × 940 Cartes et plans
Grand Aigle 750 × 1060 Plans cadastraux
Grand Monde 900 × 1260
Univers 1000 × 1300

Japanese Formats (JIS P 0138)

Format Dimensions (mm)
JB0 1030 × 1456
JB1 728 × 1030
JB2 515 × 728
JB3 364 × 515
JB4 257 × 364
JB5 182 × 257
JB6 128 × 182
JB7 91 × 128
JB8 64 × 91
JB9 45 × 64
JB10 32 × 45
JB11 22 × 32
JB12 16 × 22
Shiroku Ban 4 128 × 182
Shiroku Ban 5 189 × 262
Shiroku Ban 6 127 × 188
Kiku 4 227 × 306
Kiku 5 151 × 227

ID Formats (ISO/CEI 7810)

Format Dimensions (mm) Description
ID-000 15 × 25 Mini SIM
ID-1 54 × 85 Carte bancaire
ID-2 74 × 105
ID-3 88 × 125 Passeport

Usage

Available Paper Formats

The class includes the following standard formats:

Usage Examples

Unit Conversion

Creating a GD Image

Calculating Aspect Ratio

Landscape Mode

List All Available Formats

Breaking change : allFormats() retourne désormais un tableau associatif avec les clés width, height et name au lieu d'un tableau indexé [width, height, name].

Detect Format from Pixel Dimensions

Crop a GD Image

Supported Units

Resolution

The default resolution for pixel conversions is 300 DPI. You can modify it when calling the methods:

License

GPL V3


All versions of paper-size with dependencies

PHP Build Version
Package Version
No informations.
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 ycdev/paper-size contains the following files

Loading the files please wait ...