Skip to content
  •  
  •  
  •  
26 changes: 21 additions & 5 deletions english/php/_index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
---
title: Aspose.BarCode for PHP via Java
title: "Aspose.BarCode for PHP via Java API Reference"
linktitle: "Aspose.BarCode for PHP via Java API Reference"
articleTitle: "Aspose.BarCode for PHP via Java API Reference"
description: "Aspose.BarCode for PHP via Java enables developers to generate and read barcodes across multiple formats with a simple, cross‑platform API."
type: docs
weight: 13
weight: 10
url: /php/
keywords:
description:
keywords: "Aspose.BarCode for PHP via Java, Aspose.BarCode, Aspose API Reference"
is_root: true
---
---

## Aspose.BarCode for PHP via Java API Reference

The library supports a wide range of 1D symbologies such as Code128, Code39, EAN‑13, UPC, and 2D formats including QR, DataMatrix, PDF417, and Aztec. Functionality is divided into four namespaces: Aspose.Barcode.Generation for creating barcodes, Aspose.Barcode.Recognition for decoding them, Aspose.Barcode.ComplexBarcode for handling composite and stacked symbols, and Aspose.Barcode.Internal for low‑level utilities. Together they provide a comprehensive toolkit for barcode integration in PHP applications via Java.

## Namespaces

| Namespace | Description |
| --- | --- |
| [Aspose.Barcode.ComplexBarcode](./aspose.barcode.complexbarcode/) | Provides classes for creating, parsing, and managing complex barcode types, including address data, alternative schemes, and HIBC LIC formats. |
| [Aspose.Barcode.Generation](./aspose.barcode.generation/) | The Aspose.Barcode.Generation namespace supplies classes and enums for configuring and creating barcodes in PHP via Java. |
| [Aspose.Barcode.Internal](./aspose.barcode.internal/) | The Aspose.Barcode.Internal namespace supplies internal utility and support classes for barcode handling, licensing, geometry, and Thrift communication. |
| [Aspose.Barcode.Recognition](./aspose.barcode.recognition/) | Provides classes and enums for configuring, reading, and processing various barcode types using Aspose.BarCode for PHP via Java. |

69 changes: 69 additions & 0 deletions english/php/aspose.barcode.complexbarcode/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: "Aspose.Barcode.ComplexBarcode"
linktitle: "Aspose.Barcode.ComplexBarcode"
articleTitle: "Aspose.Barcode.ComplexBarcode"
second_title: "Aspose.BarCode for PHP via Java"
description: "Provides classes for creating, parsing, and managing complex barcode types, including address data, alternative schemes, and HIBC LIC formats."
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/
---

## Aspose.Barcode.ComplexBarcode namespace

The Aspose.Barcode.ComplexBarcode namespace contains the core components for generating and reading advanced barcode formats. It includes generators, codetext readers, and specialized HIBCLIC codetext structures for handling address information and alternative encoding schemes.


## Classes

| Class | Description |
| --- | --- |
| [Address](./address/) | Address of creditor or debtor. You can either set street, house number, postal code and town (type structured address) o |
| [AlternativeScheme](./alternativescheme/) | Alternative payment scheme instructions |
| [ComplexBarcodeGenerator](./complexbarcodegenerator/) | ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation. This sample shows how to create an |
| [ComplexCodetextReader](./complexcodetextreader/) | ComplexCodetextReader decodes codetext to specified complex barcode type. This sample shows how to recognize and decode |
| [DataElement](./dataelement/) | Represents a jurisdiction-specific data field used in documents, for example ElementID = "ZVA" with Value = "01". |
| [HIBCLICCombinedCodetext](./hibcliccombinedcodetext/) | Class for encoding and decoding the text embedded in the HIBC LIC code which stores primary and secodary data. |
| [HIBCLICComplexCodetext](./hibcliccomplexcodetext/) | Base class for encoding and decoding the text embedded in the HIBC LIC code. |
| [HIBCLICPrimaryDataCodetext](./hibclicprimarydatacodetext/) | Class for encoding and decoding the text embedded in the HIBC LIC code which stores primary data. |
| [HIBCPASCodetext](./hibcpascodetext/) | Class for encoding and decoding the text embedded in the HIBC PAS code. |
| [HIBCPASRecord](./hibcpasrecord/) | Class for storing HIBC PAS record. |
| [IComplexCodetext](./icomplexcodetext/) | Interface for complex codetext used with ComplexBarcodeGenerator. |
| [Mailmark2DCodetext](./mailmark2dcodetext/) | Class for encoding and decoding the text embedded in the Royal Mail 2D Mailmark code. |
| [MailmarkCodetext](./mailmarkcodetext/) | Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code. |
| [MandatoryFields](./mandatoryfields/) | Mandatory elements (fields) of the card |
| [MaxiCodeCodetext](./maxicodecodetext/) | Base class for encoding and decoding the text embedded in the MaxiCode code. This sample shows how to decode raw MaxiCod |
| [MaxiCodeCodetextMode2](./maxicodecodetextmode2/) | Class for encoding and decoding the text embedded in the MaxiCode code for modes 2. This sample shows how to encode and |
| [MaxiCodeCodetextMode3](./maxicodecodetextmode3/) | Class for encoding and decoding the text embedded in the MaxiCode code for modes 3. This sample shows how to encode and |
| [MaxiCodeSecondMessage](./maxicodesecondmessage/) | Base class for encoding and decoding second message for MaxiCode barcode. |
| [MaxiCodeStandardCodetext](./maxicodestandardcodetext/) | Class for encoding and decoding MaxiCode codetext for modes 4, 5 and 6. |
| [MaxiCodeStandardSecondMessage](./maxicodestandardsecondmessage/) | Class for encoding and decoding standart second message for MaxiCode barcode. |
| [MaxiCodeStandartSecondMessage](./maxicodestandartsecondmessage/) | Class for encoding and decoding standart second message for MaxiCode barcode. |
| [MaxiCodeStructuredCodetext](./maxicodestructuredcodetext/) | Base class for encoding and decoding the text embedded in the MaxiCode code for modes 2 and 3. This sample shows how to |
| [MaxiCodeStructuredSecondMessage](./maxicodestructuredsecondmessage/) | Class for encoding and decoding structured second message for MaxiCode barcode. |
| [OptionalFields](./optionalfields/) | Optional elements (fields) of the card |
| [PrimaryData](./primarydata/) | Class for storing HIBC LIC primary data. |
| [SecondaryAndAdditionalData](./secondaryandadditionaldata/) | Class for storing HIBC LIC secondary and additional data. |
| [SubfileProperties](./subfileproperties/) | USA DL subfile properties, offset and length are set automatically. |
| [SwissQRBill](./swissqrbill/) | SwissQR bill data |
| [SwissQRCodetext](./swissqrcodetext/) | Class for encoding and decoding the text embedded in the SwissQR code. |
| [USADriveIdCodetext](./usadriveidcodetext/) | Class for encoding and decoding the text embedded in the USA Driving License PDF417 code. |
| [USADriveIdJurisdSubfile](./usadriveidjurisdsubfile/) | Class for Jurisdiction specific fields for USA DL |

## Enums

| Enum | Description |
| --- | --- |
| [AddressType](./addresstype/) | Address type |
| [ComplexCodetextType](./complexcodetexttype/) | |
| [HIBCLICDateFormat](./hibclicdateformat/) | Specifies the different types of date formats for HIBC LIC. |
| [HIBCPASDataLocation](./hibcpasdatalocation/) | HIBC PAS data location types. |
| [HIBCPASDataType](./hibcpasdatatype/) | HIBC PAS record's data types. |
| [Mailmark2DType](./mailmark2dtype/) | 2D Mailmark Type defines size of Data Matrix barcode |
| [MaxiCodeSecondMessageType](./maxicodesecondmessagetype/) | |
| [QrBillStandardVersion](./qrbillstandardversion/) | SwissQR bill standard version |
| [USADriveIdCountry](./usadriveidcountry/) | Enum for Country Identification in the US Driver's License |
| [USADriveIdEyeColor](./usadriveideyecolor/) | Enum for Eye Color in the US Driver's License |
| [USADriveIdHairColor](./usadriveidhaircolor/) | Enum for Hair Color in the US Driver's License |
| [USADriveIdSex](./usadriveidsex/) | Enum for Sex field in the US Driver's License |

45 changes: 45 additions & 0 deletions english/php/aspose.barcode.complexbarcode/address/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: "Address Class"
linktitle: "Address"
articleTitle: "Address"
second_title: "Aspose.BarCode for PHP via Java"
description: "Address of creditor or debtor. You can either set street, house number, postal code and town (type structured address) or address line 1 and 2 (type combined address elements). The type is automatical"
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/
---

## Address class

**Namespace:** `Aspose.Barcode.ComplexBarcode`


Address of creditor or debtor. You can either set street, house number, postal code and town (type structured address) or address line 1 and 2 (type combined address elements). The type is automatically set once any of these fields is set. Before setting the fields, the address type is undetermined. If fields of both types are set, the address type becomes conflicting. Name and country code must always be set unless all fields are empty.


## Constructors

| Name | Description |
| --- | --- |
| [__construct](./address/) | |

## Methods

| Name | Static | Description |
| --- | --- | --- |
| [clear](./clear/) | No | Clears all fields and sets the type to AddressType.Undetermined. |
| [construct](./construct/) | Yes | Constructs an Address object from AddressDTO. |

## Properties

| Name | Read/Write | Description |
| --- | --- | --- |
| [AddressLine1](./addressline1/) | Read/Write | Gets the address line 1. Address line 1 contains street name, house number or P.O. box. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses and is optional. |
| [AddressLine2](./addressline2/) | Read/Write | Gets the address line 2. Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses. For this type, it's mandatory. |
| [CountryCode](./countrycode/) | Read/Write | Gets the two-letter ISO country code. The country code is mandatory unless the entire address contains null or emtpy values. |
| [HouseNo](./houseno/) | Read/Write | Gets the house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional. |
| [Name](./name/) | Read/Write | Gets the name, either the first and last name of a natural person or the company name of a legal person. |
| [PostalCode](./postalcode/) | Read/Write | Gets the postal code. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses. For this type, it's mandatory. |
| [Street](./street/) | Read/Write | Gets the street. The street must be speicfied without house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional. |
| [Town](./town/) | Read/Write | Gets the town or city. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses. For this type, it's mandatory. |
| [Type](./type/) | Read-only | Gets the address type. The address type is automatically set by either setting street / house number or address line 1 and 2. Before setting the fields, the address type is Undetermined. If fields of both types are set, the address type becomes Conflicting. |
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Address"
linktitle: "Address"
articleTitle: "Address"
second_title: "Aspose.BarCode for PHP via Java"
description: ""
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/address/
---

## Address Constructor

```php
__construct()
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Address.AddressLine1"
linktitle: "AddressLine1"
articleTitle: "AddressLine1"
second_title: "Aspose.BarCode for PHP via Java"
description: "Gets the address line 1. Address line 1 contains street name, house number or P.O. box. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structu"
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/addressline1/
---

## Address.AddressLine1

**Access:** Read/Write


**Returns:** string The address line 1.


### Get

Gets the address line 1. Address line 1 contains street name, house number or P.O. box. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses and is optional.


### Set

Sets the address line 1. Address line 1 contains street name, house number or P.O. box. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses and is optional.


| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Address.AddressLine2"
linktitle: "AddressLine2"
articleTitle: "AddressLine2"
second_title: "Aspose.BarCode for PHP via Java"
description: "Gets the address line 2. Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which cas"
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/addressline2/
---

## Address.AddressLine2

**Access:** Read/Write


**Returns:** string The address line 2.


### Get

Gets the address line 2. Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses. For this type, it's mandatory.


### Set

Sets the address line 2. Address line 2 contains postal code and town. Setting this field sets the address type to AddressType.CombinedElements unless it's already AddressType.Structured, in which case it becomes AddressType.Conflicting. This field is only used for combined elements addresses. For this type, it's mandatory.


| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |
20 changes: 20 additions & 0 deletions english/php/aspose.barcode.complexbarcode/address/clear/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: "Address.clear"
linktitle: "clear"
articleTitle: "clear"
second_title: "Aspose.BarCode for PHP via Java"
description: "Clears all fields and sets the type to AddressType.Undetermined."
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/clear/
---

## Address.clear

```php
clear()
```


Clears all fields and sets the type to AddressType.Undetermined.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "Address.construct"
linktitle: "construct"
articleTitle: "construct"
second_title: "Aspose.BarCode for PHP via Java"
description: "Constructs an Address object from AddressDTO."
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/construct/
---

## Address.construct

```php
construct(\Aspose\Barcode\Bridge\AddressDTO $addressDto)
```


Constructs an Address object from AddressDTO.


| Parameter | Type | Description |
| --- | --- | --- |
| `$addressDto` | `\Aspose\Barcode\Bridge\AddressDTO` | |

**Returns:** Address

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Address.CountryCode"
linktitle: "CountryCode"
articleTitle: "CountryCode"
second_title: "Aspose.BarCode for PHP via Java"
description: "Gets the two-letter ISO country code. The country code is mandatory unless the entire address contains null or emtpy values."
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/countrycode/
---

## Address.CountryCode

**Access:** Read/Write


**Returns:** string The ISO country code.


### Get

Gets the two-letter ISO country code. The country code is mandatory unless the entire address contains null or emtpy values.


### Set

Sets the two-letter ISO country code. The country code is mandatory unless the entire address contains null or emtpy values.


| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Address.HouseNo"
linktitle: "HouseNo"
articleTitle: "HouseNo"
second_title: "Aspose.BarCode for PHP via Java"
description: "Gets the house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field"
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/houseno/
---

## Address.HouseNo

**Access:** Read/Write


**Returns:** string The house number.


### Get

Gets the house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional.


### Set

Sets the house number. Setting this field sets the address type to AddressType.Structured unless it's already AddressType.CombinedElements, in which case it becomes AddressType.Conflicting. This field is only used for structured addresses and is optional.


| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |
32 changes: 32 additions & 0 deletions english/php/aspose.barcode.complexbarcode/address/name/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "Address.Name"
linktitle: "Name"
articleTitle: "Name"
second_title: "Aspose.BarCode for PHP via Java"
description: "Gets the name, either the first and last name of a natural person or the company name of a legal person."
type: docs
weight: 10
url: /php/aspose.barcode.complexbarcode/address/name/
---

## Address.Name

**Access:** Read/Write


**Returns:** string The name.


### Get

Gets the name, either the first and last name of a natural person or the company name of a legal person.


### Set

Sets the name, either the first and last name of a natural person or the company name of a legal person.


| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |
Loading
Loading