PHP Classes

AFW Examples: Examples and tests of usage of Ascoos Framework

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-02-20 (22 hours ago) RSS 2.0 feedNot yet rated by the usersTotal: 21 This week: 1All time: 11,324 This week: 42Up
Version License PHP version Categories
afw-examples 25.0.0Custom (specified...8.2Graphics, Tools, PHP 8
Description 

Author

This package provides example scripts that use the Ascoos Framework to show how to use classes and functions.

Currently, it provides example scripts that:

- Handles arrays with extra statistical analysis and charts

- Handles Disks and files system.

- Handles dates with extra operations.

- Handles network operations.

- Handles API operations.

- Handles Cache operations.

- Handles Encoders.

- Etc.

Picture of ASCOOS CMS
  Performance   Level  
Innovation award
Innovation award
Nominee: 15x

Winner: 1x

 

Instructions

For the chart examples (or any example that requires a font) to run correctly, you need to download the folder FONTS

Example

<?php
global $afw_path; // ASCOOS FRAMEWORK PATH

require_once $afw_path."/extras/encoders/bencode.php";

use
ASCOOS\FRAMEWORK\Extras\Encoders\Bencode\TBencodeHandler;

$bencode = new TBencodeHandler();
$data = ["publisher" => "Bob", "length" => 12345, "files" => ["file1.txt", "file2.txt"]];
$encoded = $bencode->encode($data);
$decoded = $bencode->decode($encoded);

echo
"Encoded: $encoded\n"; // PRINT: "d5:filesl9:file1.txt9:file2.txte6:lengthi12345e9:publisher3:Bobe" (??????? ????????????)
var_dump($decoded); // PRINT: array(3) { ["files"]=> array(2) { [0]=> string(9) "file1.txt" [1]=> string(9) "file2.txt" } ["length"]=> int(12345) ["publisher"]=> string(3) "Bob" }
?>


Screenshots (8)  
  • screenshots/bar_chart.png
  • screenshots/bar_multidimensional_chart.png
  • screenshots/box_plot.png
  • screenshots/correlation_multidimensional_matrix.png
  • screenshots/density_multidimensional_plot.png
  • screenshots/donut_chart_multidimensional.png
  • screenshots/gantt_chart.png
  • screenshots/pie_chart_multi.png
  Files folder image Files (125)  
File Role Description
Files folder imageclasses (6 directories)
Files folder imageconfig (1 file)
Files folder imagefunctions (2 files)
Files folder imagehelp (21 files)
Accessible without login Plain text file autoload.php Aux. Configuration script
Accessible without login Plain text file LICENSE_AGL-F.md Lic. License text

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadafw-examples-2025-02-20.zip 381KB
Downloadafw-examples-2025-02-20.tar.gz 277KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Ascoos Framework Download .zip .tar.gz Implement Ascoos Framework 24 code Required
 Version Control Unique User Downloads Download Rankings  
 96%
Total:21
This week:1
All time:11,324
This week:42Up