PHP Classes

PStorage: Store and retrieve objects in flat files

Recommend this page to a friend!
  Info   View files View files (61)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 365 All time: 6,854 This week: 555Up
Version License PHP version Categories
pstorage 1.0GNU General Publi...5.4PHP 5, Databases, Files and Folders, D...
Description 

Author

This package can be used to store and retrieve objects in flat files.

It provide base model object that can be extended to configure the definition of the objects to be stored in flat files.

The base model class provides ORM (Object-Relational Mapping) functions to retrieve new objects, save new or updated objects, find our count records that may match a condition, retrieve records to display in paginated listings, display the retrieved results in a table, etc..

Picture of AlexanderC
  Performance   Level  
Name: AlexanderC is available for providing paid consulting. Contact AlexanderC .
Classes: 13 packages by
Country: Moldova Moldova
Age: 34
All time rank: 7301 in Moldova Moldova
Week rank: 420 Up1 in Moldova Moldova Equal
Innovation award
Innovation award
Nominee: 3x

Details

# What is PStorage and why do we need this? The answer is pretty simple- it's the model layer for anything using flat files for storing data as it is an more complete engine. # What is the main goal of the project? Before starting is tried to find something that will manage this, but nothing found.PStorage is more complex thing than simply an storage layer for the files. It give you an abstraction layer quite similar to the Doctrine Project with possibility to work with stored data in mode advanced way than usual done in such kind of engines. # How does this work? The answer you can find in the "docs/main_scheme.txt" file. # Where ca i find examples? An example is located in the "tests/Post.php" file. # ...and what about performance? For more details check "tests/performance.php" file. ### - TODO: 1. Adding unit tests 2. Improve binary tree overall performance and stability by splitting tree into many chunks 3. Adding additional repair tools for database(currently trying to do it on demand) 4. ... much more... _P.S. Project needs more people working on to grow up..._

  Files folder image Files  
File Role Description
Files folder image.idea (7 files, 1 directory)
Files folder imagedocs (1 file)
Files folder imagelib (3 files, 3 directories)
Files folder imagetests (4 files)
Accessible without login Plain text file autoloader.php Aux. Configuration script
Accessible without login Plain text file README.md Doc. Auxiliary data

  Files folder image Files  /  .idea  
File Role Description
Files folder imagescopes (1 file)
  Accessible without login Plain text file .name Data Auxiliary data
  Accessible without login Plain text file encodings.xml Data Auxiliary data
  Accessible without login Plain text file misc.xml Data Auxiliary data
  Accessible without login Plain text file modules.xml Data Auxiliary data
  Accessible without login Plain text file PStorage.iml Data Auxiliary data
  Accessible without login Plain text file vcs.xml Data Auxiliary data
  Accessible without login Plain text file workspace.xml Data Auxiliary data

  Files folder image Files  /  .idea  /  scopes  
File Role Description
  Accessible without login Plain text file scope_settings.xml Data Auxiliary data

  Files folder image Files  /  docs  
File Role Description
  Accessible without login Plain text file main_scheme.txt Doc. Documentation

  Files folder image Files  /  lib  
File Role Description
Files folder imageHelpers (5 files)
Files folder imageModel (5 files, 3 directories)
Files folder imageStorage (9 files, 4 directories)
  Plain text file AModel.php Class Class source
  Plain text file Collection.php Class Class source
  Plain text file Definition.php Class Class source

  Files folder image Files  /  lib  /  Helpers  
File Role Description
  Plain text file CollectionInterface.php Class Class source
  Plain text file DefinitionHelper.php Class Class source
  Plain text file Paginator.php Class Class source
  Plain text file Singleton.php Class Class source
  Plain text file UniversalGS.php Class Class source

  Files folder image Files  /  lib  /  Model  
File Role Description
Files folder imageBehaviors (2 files, 1 directory)
Files folder imageComparators (2 files, 1 directory)
Files folder imageExceptions (2 files)
  Plain text file Definition.php Class Class source
  Plain text file Operations.php Class Class source
  Plain text file TableDescriptorsConstants.php Class Class source
  Plain text file TableTrait.php Class Class source
  Plain text file Validator.php Class Class source

  Files folder image Files  /  lib  /  Model  /  Behaviors  
File Role Description
Files folder imageHelpers (1 file)
  Plain text file ABehavior.php Class Class source
  Plain text file SlugableBehavior.php Class Class source

  Files folder image Files  /  lib  /  Model  /  Behaviors  /  Helpers  
File Role Description
  Plain text file BehaviorApplyable.php Class Class source

  Files folder image Files  /  lib  /  Model  /  Comparators  
File Role Description
Files folder imageHelpers (2 files)
  Plain text file AComparator.php Class Class source
  Plain text file NumberComparator.php Class Class source

  Files folder image Files  /  lib  /  Model  /  Comparators  /  Helpers  
File Role Description
  Plain text file ComparatorApplyable.php Class Class source
  Plain text file PredefinedComparators.php Class Class source

  Files folder image Files  /  lib  /  Model  /  Exceptions  
File Role Description
  Plain text file PropertyRequiredException.php Class Class source
  Plain text file UniqueConstrainFailException.php Class Class source

  Files folder image Files  /  lib  /  Storage  
File Role Description
Files folder imageDrivers (2 files)
Files folder imageExceptions (4 files)
Files folder imageSerialization (1 file, 2 directories)
Files folder imageTree (2 files)
  Plain text file ATableSubItem.php Class Class source
  Plain text file Client.php Class Class source
  Plain text file DefaultClient.php Class Class source
  Plain text file Inflector.php Class Class source
  Plain text file PrimaryKey.php Class Class source
  Plain text file ReversedIndex.php Class Class source
  Plain text file Row.php Class Class source
  Plain text file SearchTree.php Class Class source
  Plain text file Table.php Class Class source

  Files folder image Files  /  lib  /  Storage  /  Drivers  
File Role Description
  Plain text file FileSystemDriver.php Class Class source
  Plain text file IDriver.php Class Class source

  Files folder image Files  /  lib  /  Storage  /  Exceptions  
File Role Description
  Plain text file AtomarityViolationException.php Class Class source
  Plain text file MissingPrimaryKeyException.php Class Class source
  Plain text file MissingSearchValueException.php Class Class source
  Plain text file PrimaryKeyIncrementalFileViolation.php Class Class source

  Files folder image Files  /  lib  /  Storage  /  Serialization  
File Role Description
Files folder imageDriver (4 files)
Files folder imageExceptions (2 files)
  Plain text file Factory.php Class Class source

  Files folder image Files  /  lib  /  Storage  /  Serialization  /  Driver  
File Role Description
  Plain text file IDriver.php Class Class source
  Plain text file JsonDriver.php Class Class source
  Plain text file MsgPackDriver.php Class Class source
  Plain text file NativeDriver.php Class Class source

  Files folder image Files  /  lib  /  Storage  /  Serialization  /  Exceptions  
File Role Description
  Plain text file BrokenSerializedDataException.php Class Class source
  Plain text file UnableToSerializeException.php Class Class source

  Files folder image Files  /  lib  /  Storage  /  Tree  
File Role Description
  Plain text file BalancedBinaryTree.php Class Class source
  Plain text file Node.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file performance.php Example Unit test script
  Accessible without login Plain text file Post.php Example Example script
  Accessible without login HTML file test_hardware_info.html Doc. Documentation
  Plain text file Timer.php Class Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:365
This week:0
All time:6,854
This week:555Up
User Comments (2)
good
10 years ago (Rahul Shambharkar)
80%StarStarStarStarStar
Very interesting class, a pure PHP ORM implementation.
10 years ago (Eduardo "Trial Force" Bonfandini)
72%StarStarStarStar