PHP Classes

AFW Examples: Examples and tests of usage of Ascoos Framework 24

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
2024-12-18 (2 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 20 This week: 6All time: 11,332 This week: 7Up
Version License PHP version Categories
afw-examples 24.0.7Custom (specified...8.2Graphics, Tools, PHP 8
Description 

Author

This package provides example scripts that use the Ascoos Framework 24 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.

- Etc.

Picture of ASCOOS CMS
  Performance   Level  
Name: ASCOOS CMS <contact>
Classes: 22 packages by
Country: Greece Greece
Innovation award
Innovation award
Nominee: 13x

Instructions

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

Example

<?php
/**
 * __ _ ___ ___ ___ ___ ___ ____ _ __ ___ ___
 * / _` |/ / / __/ _ \ / _ \ / / / __/| '_ ` _ \ / /
 * | (_| |\ \| (_| (_) | (_) |\ \ | (__ | | | | | |\ \
 * \__,_|/__/ \___\___/ \___/ /__/ \___\|_| |_| |_|/__/
 *
 *
 ************************************************************************************
 * @ASCOOS-NAME : ASCOOS CMS 24' *
 * @ASCOOS-VERSION : 24.0.0 *
 * @ASCOOS-CATEGORY : Framework (Frontend and Administrator Side) *
 * @ASCOOS-CREATOR : Drogidis Christos *
 * @ASCOOS-SITE : www.ascoos.com *
 * @ASCOOS-LICENSE : [Commercial] http://docs.ascoos.com/lics/ascoos/AGL.html *
 * @ASCOOS-COPYRIGHT : Copyright (c) 2007 - 2024, AlexSoft Software. *
 ************************************************************************************
 *
 * @package : ASCOOS FRAMEWORK Examples
 * @subpackage : Return the childrens or parents classes of the given class or object
 * @source : afw-examples/classes/TObject/TObject.Childrens_and_Parents_classes.php
 * @fileNo :
 * @version : 24.0.7
 * @created : 2024-07-01 20:00:00 UTC+3
 * @updated : 2024-12-18 07:00:00 UTC+3
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 * @license : AGL-F
 *
 * @since PHP 8.2.0
 */
declare(strict_types=1);

require_once
"../../autoload.php";

use
ASCOOS\FRAMEWORK\Kernel\Core\TObject;


/*
<English> Example 1: Parent and Child Class
<Greek> ?????????? 1: ?????? ??? ??????? ?????
*/
class ParentClass extends TObject {
   
// You can add properties and methods here
}

class
ChildClass extends ParentClass {
   
// You can add properties and methods here
}


/*
<English> Example 2: Other Parent and Child Class
<Greek> ?????????? 2: ???? ?????? ??? ??????? ?????
*/
class AnotherParentClass extends TObject {
   
// You can add properties and methods here
}

class
AnotherChildClass extends AnotherParentClass {
   
// You can add properties and methods here
}


/*
<English> Use of Methods
<Greek> ????? ??? ???????
*/
$parent = new ParentClass();
$child = new ChildClass();

echo
"ChildClass parent classes:\n";
print_r($child->getParents());

echo
"ParentClass children's classes:\n";
print_r($parent->getChildren());

$anotherParent = new AnotherParentClass();
$anotherChild = new AnotherChildClass();

echo
"Parent classes of AnotherChildClass:\n";
print_r($anotherChild->getParents());

echo
"AnotherParentClass children's classes:\n";
print_r($anotherParent->getChildren());

$tobject = new TObject();
echo
"TObject children's classes:\n";
print_r($tobject->getChildren());
?>


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 (119)  
File Role Description
Files folder imageclasses (4 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

  Files folder image Files (119)  /  classes  
File Role Description
Files folder imageTArrayHandler (2 directories)
Files folder imageTCacheHandler (2 files)
Files folder imageTDatesHandler (30 files)
Files folder imageTObject (4 files)

  Files folder image Files (119)  /  classes  /  TArrayHandler  
File Role Description
Files folder imageAnalysis (28 files)
Files folder imageCharts (21 files)

  Files folder image Files (119)  /  classes  /  TArrayHandler  /  Analysis  
File Role Description
  Accessible without login Plain text file autocorrelation.php Example Example script
  Accessible without login Plain text file bootstrapResampling.php Example Example script
  Accessible without login Plain text file categorizeByThreshold.php Example Example script
  Accessible without login Plain text file correlationCoefficient.php Example Example script
  Accessible without login Plain text file covariance.php Example Example script
  Accessible without login Plain text file entropy.php Example Example script
  Accessible without login Plain text file exponentialMovingAverage.php Example Example script
  Accessible without login Plain text file findMax.php Example Example script
  Accessible without login Plain text file findMin.php Example Example script
  Accessible without login Plain text file frequencyDistribution.php Example Example script
  Accessible without login Plain text file generateStatisticsReport.php Example Example script
  Accessible without login Plain text file geometricMean.php Example Example script
  Accessible without login Plain text file groupBy.php Example Example script
  Accessible without login Plain text file harmonicMean.php Example Example script
  Accessible without login Plain text file interquartileRange.php Example Example script
  Accessible without login Plain text file kurtosis.php Example Example script
  Accessible without login Plain text file mean.php Example Example script
  Accessible without login Plain text file median.php Example Example script
  Accessible without login Plain text file mode.php Example Example script
  Accessible without login Plain text file movingAverage.php Example Example script
  Accessible without login Plain text file percentile.php Example Example script
  Accessible without login Plain text file range.php Example Example script
  Accessible without login Plain text file skewness.php Example Example script
  Accessible without login Plain text file standardDeviation.php Example Example script
  Accessible without login Plain text file sumOfSquares.php Example Example script
  Accessible without login Plain text file variance.php Example Example script
  Accessible without login Plain text file weightedAverage.php Example Example script
  Accessible without login Plain text file zScoreNormalization.php Example Example script

  Files folder image Files (119)  /  classes  /  TArrayHandler  /  Charts  
File Role Description
  Accessible without login Plain text file Chart_Area.php Example Creates an area chart from the array data
  Accessible without login Plain text file Chart_Bar.php Example Creates a bar chart from the array data
  Accessible without login Plain text file Chart_Box_Plot.php Example Creates a box plot from the array data.
  Accessible without login Plain text file Chart_Bubble.php Example Example script
  Accessible without login Plain text file Chart_Candlestick.php Example Creates a candlestick chart from the array data.
  Accessible without login Plain text file Chart_Correlation_Matrix.php Example Example script
  Accessible without login Plain text file Chart_Density_Plot.php Example Example script
  Accessible without login Plain text file Chart_Donut.php Example Example script
  Accessible without login Plain text file Chart_Funnel.php Example Example script
  Accessible without login Plain text file Chart_Gantt.php Example Creates a Gantt chart from the array data
  Accessible without login Plain text file Chart_Gauge.php Example Example script
  Accessible without login Plain text file Chart_Heat_Map.php Example Example script
  Accessible without login Plain text file Chart_Histogram.php Example Example script
  Accessible without login Plain text file Chart_Line.php Example Example script
  Accessible without login Plain text file Chart_MultiLine.php Example Example script
  Accessible without login Plain text file Chart_Pie.php Example Example script
  Accessible without login Plain text file Chart_Polar_Area.php Example Example script
  Accessible without login Plain text file Chart_Radar.php Example Example script
  Accessible without login Plain text file Chart_Scatter_Plot.php Example Example script
  Accessible without login Plain text file Chart_Spline.php Example Example script
  Accessible without login Plain text file Chart_Step.php Example Example script

  Files folder image Files (119)  /  classes  /  TCacheHandler  
File Role Description
  Accessible without login Plain text file TCacheFileHandler.php Example Class source
  Accessible without login Plain text file TCacheMemcachedHandler.php Example Class source

  Files folder image Files (119)  /  classes  /  TDatesHandler  
File Role Description
  Accessible without login Plain text file addDays.php Example Example script
  Accessible without login Plain text file calculateWeekendsBetween.php Example Example script
  Accessible without login Plain text file calculateWeeksBetween.php Example Example script
  Accessible without login Plain text file calculateWorkingDaysBetween.php Example Example script
  Accessible without login Plain text file convertFromTimestamp.php Example Example script
  Accessible without login Plain text file convertToTimestamp.php Example Example script
  Accessible without login Plain text file daysUntilNextWeekday.php Example Example script
  Accessible without login Plain text file diff_days.php Example Example script
  Accessible without login Plain text file diff_time.php Example Example script
  Accessible without login Plain text file formatDate.php Example Example script
  Accessible without login Plain text file getAge.php Example Example script
  Accessible without login Plain text file getBlackFriday.php Example Example script
  Accessible without login Plain text file getCatholicEaster.php Example Example script
  Accessible without login Plain text file getCleanMonday.php Example Example script
  Accessible without login Plain text file getCurrentDate.php Example Example script
  Accessible without login Plain text file getCurrentTime.php Example Example script
  Accessible without login Plain text file getFirstDayOfCurrentYear.php Example Example script
  Accessible without login Plain text file getFirstDayOfMonth.php Example Example script
  Accessible without login Plain text file getGoodFriday.php Example Example script
  Accessible without login Plain text file getLastDayOfCurrentYear.php Example Example script
  Accessible without login Plain text file getLastDayOfMonth.php Example Example script
  Accessible without login Plain text file getNationalHolidays.php Example Example script
  Accessible without login Plain text file getOrthodoxEaster.php Example Example script
  Accessible without login Plain text file getWeekday.php Example Example script
  Accessible without login Plain text file getWeekNumber.php Example Example script
  Accessible without login Plain text file gregorianToJulian.php Example Example script
  Accessible without login Plain text file isLeapYear.php Example Example script
  Accessible without login Plain text file isWorkingDay.php Example Example script
  Accessible without login Plain text file julianToGregorian.php Example Example script
  Accessible without login Plain text file subtractDays.php Example Example script

  Files folder image Files (119)  /  classes  /  TObject  
File Role Description
  Accessible without login Plain text file TObject.Childrens_...Parents_classes.php Example Class source
  Accessible without login Plain text file TObject.getDeepProperty.php Example Class source
  Accessible without login Plain text file TObject.getDescendantsTree.php Example Class source
  Accessible without login Plain text file TObject.setDeepProperties.php Example Class source

  Files folder image Files (119)  /  config  
File Role Description
  Accessible without login Plain text file config.php Aux. Configuration script

  Files folder image Files (119)  /  functions  
File Role Description
  Accessible without login Plain text file intToVersionString.php Example Converts an integer to a version string format using a mask
  Accessible without login Plain text file versionStringToInt.php Example Converts a version string format to an integer using a mask

  Files folder image Files (119)  /  help  
File Role Description
  Accessible without login Image file area_chart_complex.png Icon Icon image
  Accessible without login Image file bar_multidimensional_chart.png Icon Icon image
  Accessible without login Image file box_plot.png Icon Icon image
  Accessible without login Image file bubble_chart.png Icon Icon image
  Accessible without login Image file candlestick_chart.png Icon Icon image
  Accessible without login Image file correlation_multidimensional_matrix.png Icon Icon image
  Accessible without login Image file density_multidimensional_plot.png Icon Icon image
  Accessible without login Image file donut_chart_multidimensional.png Icon Icon image
  Accessible without login Image file funnel_chart.png Icon Icon image
  Accessible without login Image file gantt_chart.png Icon Icon image
  Accessible without login Image file gauge_chart.png Icon Icon image
  Accessible without login Image file heat_map.png Icon Icon image
  Accessible without login Image file histogram.png Icon Icon image
  Accessible without login Image file line_chart_multi.png Icon Icon image
  Accessible without login Image file multi_line_chart.png Icon Icon image
  Accessible without login Image file pie_chart_multi.png Icon Icon image
  Accessible without login Image file polar_area_chart.png Icon Icon image
  Accessible without login Image file radar_chart.png Icon Icon image
  Accessible without login Image file scatter_plot.png Icon Icon image
  Accessible without login Image file spline_chart.png Icon Icon image
  Accessible without login Image file step_chart.png Icon Icon image

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-2024-12-18.zip 375KB
Downloadafw-examples-2024-12-18.tar.gz 275KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Ascoos Framework 24 Download .zip .tar.gz Implement Ascoos Framework 24 code Required
 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:6
All time:11,332
This week:7Up