PHP Classes

Ascoos Framework: Framework of general purposes classes

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-01-07 (9 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 24 This week: 3All time: 11,279 This week: 19Up
Version License PHP version Categories
afw 25.0.0Custom (specified...8.2System information, Files and Folders, L..., T..., P...
Description 

Author

This package is a framework of general-purpose classes.

It provides several traits and classes to be used by many types of applications.

Currently, the free edition provides classes and traits for:

- Control memory usage.

- Access disk drives, directories, and files.

- Array handles, extra child classes for analysis, and GD Charts.

- Cache handles, with handlers for Ascoos, files, Memcached, Opcache, and APCu.

Picture of ASCOOS CMS
  Performance   Level  
Name: ASCOOS CMS <contact>
Classes: 25 packages by
Country: Greece Greece
Age: ???
All time rank: 380123 in Greece Greece
Week rank: 3 Up1 in Greece Greece Up
Innovation award
Innovation award
Nominee: 14x

Winner: 1x

Instructions

For more examples of using the Ascoos Framework see the afw-examples package.

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 (AFW)
 * @subpackage : ASCOOS FRAMEWORK Core TObject Example File
 * @source : afw/tests/TObject.getDeepProperty.php
 * @fileNo :
 * @version : 24.0.6
 * @created : 2024-12-15 07:00:00 UTC+3
 * @updated :
 * @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;


class
TExampleObject extends TObject
{
   
/**
     * Constructor.
     *
     * @desc <English> Initialize the class with given properties.
     * @desc <Greek> ??????????? ??? ????? ?? ??? ??????????? ?????????.
     *
     * @param array $properties <English> An associative array of properties to initialize the class with.
     * <Greek> ???? ????????????? ??????? ????????? ??? ??? ???????????? ??? ??????.
     */
   
public function __construct(array $properties = [])
    {
       
parent::__construct($properties);
    }
}

/*
<English> Example of use the TExampleObject class
<Greek> ?????????? ?????? ??? ?????? TExampleObject
*/
$example = new TExampleObject([
   
'config' => [
       
'extensions' => [
           
'subExtension1' => ['version' => '1.0.0'],
           
'subExtension2' => ['enabled' => true]
        ],
       
'newProperty' => 'newValue'
   
]
]);

/*
<English> Get a deep property 'version' for 'subExtension1' in the 'extensions' array.
<Greek> ???????? ???? ?????? ????????? 'version' ??? ?? 'subExtension1' ???? ?????? 'extensions'.
*/
$version = $example->getDeepProperty(['config', 'extensions', 'subExtension1', 'version']);
echo
"Version: $version\n";

/*
<English> Get a deep property 'enabled' for 'subExtension2' in the 'extensions' array.
<Greek> ???????? ???? ?????? ????????? 'enabled' ??? ?? 'subExtension2' ???? ?????? 'extensions'.
*/
$enabled = $example->getDeepProperty(['config', 'extensions', 'subExtension2', 'enabled']);
echo
"Enabled: " . ($enabled ? 'true' : 'false') . "\n";

/*
<English> Get a deep property 'newProperty' at the 'config' level.
<Greek> ???????? ???? ?????? ????????? 'newProperty' ??? ??????? ??? 'config'.
*/
$newProperty = $example->getDeepProperty(['config', 'newProperty']);
echo
"New Property: $newProperty\n";

/*
<English> Print the properties for control
<Greek> ???????? ??? ????????? ??? ??????
*/
print_r($example->getProperties());

?>


Details

Changelog

24.0.0 [2024-07-01]

Initial Ascoos Framework 24'


  Files folder image Files (79)  
File Role Description
Files folder imageconfig (1 file)
Files folder imagedocs (1 directory)
Files folder imageextras (1 file, 1 directory)
Files folder imagekernel (9 files, 2 directories)
Files folder imagelibs (1 file, 1 directory)
Files folder imagetests (3 files)
Files folder imagetmp (1 file, 1 directory)
Files folder imagetools (1 file)
Accessible without login Plain text file autoload.php Aux. Auxiliary script
Plain text file autoloader.php Class Class source
Accessible without login Plain text file CHANGELOG.md Doc. Changelog data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE_AGL-F.md Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

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

  Files folder image Files (79)  /  docs  
File Role Description
Files folder imageclasses (7 files)

  Files folder image Files (79)  /  docs  /  classes  
File Role Description
  Accessible without login Plain text file TArrayAnalysisHandler.md Data Auxiliary data
  Accessible without login Plain text file TArrayHandler.md Data Auxiliary data
  Accessible without login Plain text file TArrayMessagePackHandler.md Data Auxiliary data
  Accessible without login Plain text file TArrayMongoBSONHandler.md Data Auxiliary data
  Accessible without login Plain text file TDatesHandler.md Data Auxiliary data
  Accessible without login Plain text file TError.md Data Auxiliary data
  Accessible without login Plain text file TObject.md Data Auxiliary data

  Files folder image Files (79)  /  extras  
File Role Description
Files folder imagearrays (5 files)
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (79)  /  extras  /  arrays  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation
  Plain text file TArrayAnalysisHandler.php Class Handles advanced data analysis for arrays.
  Plain text file TArrayGraphHandler.php Class Handles the creation of graphical representations from array data
  Plain text file TArrayMessagePackHandler.php Class Class source
  Plain text file TArrayMongoBSONHandler.php Class Class Mongo BSON Handles

  Files folder image Files (79)  /  kernel  
File Role Description
Files folder imagehandlers (1 file, 1 directory)
Files folder imageimplementation (3 files)
  Plain text file coreArrays.php Class Class Arrays Handles source
  Plain text file coreCache.php Class Class source
  Accessible without login Plain text file coreConsts.php Aux. Configuration script
  Plain text file coreDates.php Class Class source
  Plain text file coreDisks.php Class Core Disks Class source
  Plain text file coreFunctions.php Class Core Functions
  Plain text file coreGraphs.php Class Graphs Core Handles
  Plain text file coreKernel.php Class Core Class source
  Accessible without login HTML file index.html Data Empty page

  Files folder image Files (79)  /  kernel  /  handlers  
File Role Description
Files folder imagecache (6 files)
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (79)  /  kernel  /  handlers  /  cache  
File Role Description
  Plain text file apcu.php Class Class source
  Plain text file ascoos.php Class Class source
  Plain text file files.php Class Class source
  Accessible without login HTML file index.html Doc. Documentation
  Plain text file memcached.php Class Class source
  Plain text file opcache.php Class Class source

  Files folder image Files (79)  /  kernel  /  implementation  
File Role Description
  Accessible without login HTML file index.html Data Empty page
  Plain text file Methods.php Class Class source
  Plain text file TDriveInfo.php Class Class source

  Files folder image Files (79)  /  libs  
File Role Description
Files folder imagephpbcl8 (7 files, 2 directories)
  Accessible without login HTML file index.html Data Empty page

  Files folder image Files (79)  /  libs  /  phpbcl8  
File Role Description
Files folder imagesrc (3 files, 1 directory)
Files folder imagetest (13 files)
  Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Plain text file libin.json Data Auxiliary data
  Accessible without login Plain text file LICENSE_AGL-F.md Lic. License text
  Plain text file phpbcl8_autoload.php Class Class source
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (79)  /  libs  /  phpbcl8  /  src  
File Role Description
Files folder imagecompat (10 files)
  Plain text file coreCompatibilities.php Class Class source
  Accessible without login HTML file index.html Doc. Documentation
  Plain text file phpBCL.php Class Class source

  Files folder image Files (79)  /  libs  /  phpbcl8  /  src  /  compat  
File Role Description
  Plain text file compat_consts.php Class Class source
  Plain text file compat_deprecated.php Class Class source
  Plain text file compat_error.php Class Class source
  Plain text file compat_php81x.php Class Class source
  Plain text file compat_php82x.php Class Class source
  Plain text file compat_php83x.php Class Class source
  Plain text file compat_php84x.php Class Class source
  Plain text file compat_php85x.php Class Class source
  Plain text file compat_similar.php Class Class source
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (79)  /  libs  /  phpbcl8  /  test  
File Role Description
  Accessible without login Plain text file 83__mb_str_pad.php Example Example script
  Accessible without login Plain text file 84_array_all.php Example Example script
  Accessible without login Plain text file 84_array_any.php Example Example script
  Accessible without login Plain text file 84_array_find .php Example Example script
  Accessible without login Plain text file 84_array_find_key.php Example Example script
  Accessible without login Plain text file 84_bcdivmod.php Example Example script
  Accessible without login Plain text file 84_grapheme_str_split.php Example Example script
  Accessible without login Plain text file 84_intltz_get_iana_id.php Example Example script
  Accessible without login Plain text file 84__http_get_last_response_headers.php Example Example script
  Accessible without login Plain text file 84__mb_trim.php Example Example script
  Accessible without login Plain text file 84__mb_ucfirst.php Example Example script
  Accessible without login Plain text file 85_php_build_date.php Example Example script
  Accessible without login Plain text file example.php Example Example script

  Files folder image Files (79)  /  tests  
File Role Description
  Accessible without login Plain text file disks_drives.php Example Example script
  Accessible without login Plain text file TObject.getDeepProperty.php Example Example script
  Accessible without login Plain text file TObject.setDeepProperties.php Example Example script

  Files folder image Files (79)  /  tmp  
File Role Description
Files folder imagecache (1 file)
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (79)  /  tmp  /  cache  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files (79)  /  tools  
File Role Description
  Accessible without login HTML file index.html Data Empty page

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-2025-01-07.zip 157KB
Downloadafw-2025-01-07.tar.gz 101KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP 8 Backwards Compatibility Library Download .zip .tar.gz This library included on Ascoos Framework 24 Optional
 Version Control Reuses Unique User Downloads Download Rankings  
 100%13
Total:24
This week:3
All time:11,279
This week:19Up