| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2025-03-31 (22 days ago) | Not yet rated by the users | Total: 24 This week: 1 | All time: 11,281 This week: 42 | |||||
| Version | License | PHP version | Categories | |||
| afw 25.0.0 | Custom (specified... | 8.2 | System information, Files and Folders, L..., T..., P... |
| Description | Author | |
This package is a framework of general-purpose classes. |
Current Version 25.0.0.11526 [2025-03-31]
For more examples of using the Ascoos Framework see the afw-examples package.
<?php
|
? 2025-03-31
> The source code intended for commercial use cannot be provided as it is encrypted.
> Ascoos Cms users will have access to all class functionalities, but the source code will remain hidden.
Objects
- $html : [Only Commercial Edition]
> A utility class that provides methods for handling HTML.
```php
// Syntax
THTML::__construct(array $array = [], array $properties = [], ?TLoggerHandler $logger = null);
// USE
$html =& THTML::getInstance();
echo $html->br(2);
/*
* Concatenates the label with an optional separator and a number of non-breaking spaces generated by the spaces() method.
* @param string $label The base label text.
* @param int $num The number of non-breaking spaces to generate and append.
* @param string $sep An optional separator inserted between the label and the spaces. Defaults to an empty string.
* @param bool $before_space Whether to add an extra space before the generated spaces.
* @param bool $after_space Whether to add an extra space after the generated spaces.
*/
echo $html->spacedLabel('Test Label', 5, ':', true, false);
echo $html->hr(3, 3);
$html->Free($html);
// Output: <br><br>Test Label: <br><br><br><hr><br><br><br>
```
`$objString` : [Only Commercial Edition]
> This class provides helper functions for managing and manipulating string data consistently and in a reusable way.
$objString =& TString::getInstance();
$str = ' Greek:????????? ?????????????, "1\/ ???????? ';
echo $html->spacedLabel('TString->escape', 4, ':', true);
echo $objString->escape($str);
echo $html->hr(2);
echo $html->spacedLabel('TString->quote', 4, ':', true);
echo $objString->quote($str, '\'');
`$utf8` : [Only Commercial Edition]
> A utility class providing methods for handling UTF-8 strings, detecting and validating encoding.
/
* Repeat a string
* @param string $string The string to be repeated.
* @param int $times Number of times the string should be repeated.
* Times has to be greater than or equal to 0. If set to 0,
* the function will return an empty string.
* @param ?string $encoding The character encoding to use. Defaults to 'UTF-8' if omitted or null.
*/
echo $utf8->str_repeat('Greek:????????? ?????????????, ????????', 2)
// output: Greek:????????? ?????????????, ????????Greek:????????? ?????????????, ????????
Arrays
- $conf : Ascoos Framework Configuration Data
Paths
- $AFW_PATH or $afw_path : Ascoos Framework Path
- $AFW_KERNEL_PATH or $afw_kernel_path : Ascoos Framework Kernel Path
- $AFW_KERNEL_IMPLEMENTATION_PATH : Ascoos Framework Kernel Implementation Path
- $AFW_KERNEL_HANDLERS_PATH : Ascoos Framework Kernel Handlers Path
- $AFW_EXTRAS_PATH : Ascoos Framework Extras Classes Path
- $AFW_CONFIG_PATH : Ascoos Framework Configuration Path
- $AFW_LIBS_PATH : Ascoos Framework Libraries Path
- $AFW_LOGS_PATH : Ascoos Framework Logs Path
- $AFW_CACHE_PATH : Ascoos Framework Cache Path
`formatBytes` : The `$bytes` argument can now accept float values. The result generation process has also been improved.
// Global function
formatBytes(float|int $bytes, int $precision = 2): string
`TArrayHandler` : - `__construct` : In the commercial edition, an argument supporting report handling has been added.
```php public function __construct(array $array = [], array $properties = [], ?TLoggerHandler $logger = null) ```
- `getInstance` : An instance method has been added to the class. In the commercial edition, an argument supporting report handling has been added.
```php public static function &getInstance(array $array, array $properties = [], ?TLoggerHandler $logger = null) ```
- `fromJSON` : 1. Added the `depth` argument for dynamic selection of the maximum nesting depth for JSON decoding. Default: 512.
```php public function fromJSON(string $json, ?string $key = null, int $depth = 512): bool ``` 2. The character encoding of retrieved JSON file content is now UTF8.
- `fromJSONFile` : 1. Added the `depth` argument for dynamic selection of the maximum nesting depth for JSON decoding. Default: 512.
```php public function fromJSONFile(string $filePath, ?string $key = null, int $depth = 512): bool ```
- `toJSON` : 1. Fixed storage error in JSON files when saving UTF8 characters. 2. Added the `$array` argument for supporting an external array. If not provided, it returns the internal array `$this->array`.
```php public function toJSON(?array $array = null): string ``` 3. Added new functionality.
- `toJSONFile` : 1. Added the `$array` argument for external array selection. If not provided, it returns the internal array `$this->array`.
```php public function toJSONFile(string $filePath, ?array $array = null) ```
| File | Role | Description | ||
|---|---|---|---|---|
| Aux. | Ascoos Autoload Framework | |||
| Class | Class source | |||
| Doc. | Changelog data | |||
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| / | docs | / | changelogs |
| File | Role | Description |
|---|---|---|
| |
Doc. | Ascoos Framework 25.0.0.11526 Changelog file |
| / | docs | / | classes |
| File | Role | Description |
|---|---|---|
| |
Data | Auxiliary data |
| |
Data | Auxiliary data |
| |
Data | Auxiliary data |
| |
Data | Auxiliary data |
| |
Data | Auxiliary data |
| |
Data | Auxiliary data |
| |
Data | Auxiliary data |
| / | extras |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Doc. | Documentation | ||
| / | extras | / | arrays |
| File | Role | Description |
|---|---|---|
| |
Doc. | Documentation |
| |
Class | Handles advanced data analysis for arrays. |
| |
Class | Handles the creation of graphical representations from array data |
| |
Class | Class source |
| |
Class | Class Mongo BSON Handles |
| / | extras | / | encoders |
| File | Role | Description |
|---|---|---|
| |
Class | Handles Base64 encoding and decoding |
| |
Class | Handles Bencode encoding and decoding. |
| |
Class | Handles Gzip compression and decompression. |
| |
Class | Handles hexadecimal encoding and decoding. |
| |
Class | Handles JSON encoding and decoding with UTF-8 support. |
| |
Class | Handles PHP serialize/unserialize encoding and decoding. |
| |
Class | Handles URL encoding and decoding (percent-encoding). |
| |
Class | Handles YAML encoding and decoding. |
| / | kernel |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Class | Class Arrays Handles source | ||
| |
Class | Class source | ||
| |
Class | Main Core Constants Handles | ||
| |
Class | Class source | ||
| |
Class | Core Disks Class source | ||
| |
Class | Handles arrays with economics formulas | ||
| |
Class | Handles encoding and decoding data | ||
| |
Class | Core Functions | ||
| |
Class | Graphs Core Handles | ||
| |
Class | Core Class source | ||
| |
Data | Empty page | ||
| / | kernel | / | handlers | / | cache |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Doc. | Documentation |
| |
Class | Class source |
| |
Class | Class source |
| / | kernel | / | implementation |
| File | Role | Description |
|---|---|---|
| |
Data | Empty page |
| |
Class | Class source |
| |
Class | Class source |
| / | libs | / | phpbcl8 |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Data | Auxiliary data | ||
| |
Data | Auxiliary data | ||
| |
Doc. | Documentation | ||
| |
Data | Auxiliary data | ||
| |
Lic. | License text | ||
| |
Class | Class source | ||
| |
Doc. | Documentation | ||
| / | libs | / | phpbcl8 | / | src |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Class | Class source | ||
| |
Doc. | Documentation | ||
| |
Class | Class source | ||
| / | libs | / | phpbcl8 | / | src | / | compat |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| |
Doc. | Documentation |
| / | libs | / | phpbcl8 | / | test |
| File | Role | Description |
|---|---|---|
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| / | tests |
| File | Role | Description |
|---|---|---|
| |
Example | Example script |
| |
Example | Example script |
| |
Example | Example script |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| afw-2025-03-31.zip 209KB | |
| afw-2025-03-31.tar.gz 138KB | |
| Install with Composer |
| Needed packages | ||
| Class | Download | Why it is needed | Dependency |
|---|---|---|---|
| PHP 8 Backwards Compatibility Library | This library included on Ascoos Framework 24 | Optional |
| Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
| 0% | 14 |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
| Other classes that need this package |
| Class | Why it is needed | Dependency |
|---|---|---|
| AFW Examples | Implement Ascoos Framework 24 code | Required |
| Ascoos CMS Online Users | Ascoos Framework 24 included in Ascoos Cms 24 | Recommended |
| ASCOOS CMS Popular Contents | This framework is included in the new core of Ascoos Cms | Required |
| Background Selector | This framework is included in the new core of Ascoos Cms | Required |
| Comfor PHP Discussion Forum Latest | This framework is included in the new core of Ascoos Cms | Required |
| converter-toml | Use classes of Ascoos Framework | Required |
| Drives Info | Require Ascoos Framework >= 24.0.1 | Required |
| More Author Articles | This framework is included in the new core of Ascoos Cms | Required |
| PHP Article Editor Block | This framework is included in the new core of Ascoos Cms | Required |
| PHP Social Share Buttons for ASCOOS | This framework is included in the new core of Ascoos Cms | Required |
| Scroll to Top | This framework is included in the new core of Ascoos Cms | Required |
| TEconomicsHandler | included in Ascoos Framework | Required |
| TMathsHandler | part of Ascoos Framework | Required |
| Up Previous Contents ASCOOS CMS Related Articles | This framework is included in the new core of Ascoos Cms | Required |