Download Latest Version MythCore-UI v0.1.0.4-alpha (144.3 kB)
Email in envelope

Get an email when there's a new version of MythCore

Home / MythCore-IO / 0.1.0.3
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2015-08-21 2.7 kB
MythCore-IO-v0.1.0.3-alpha-with-tests.tar.gz 2015-08-21 20.5 kB
MythCore-IO-v0.1.0.3-alpha.tar.gz 2015-08-21 17.7 kB
Totals: 3 Items   40.9 kB 0

MythCore-IO Alpha Preview Release v0.1.0.3

I/O base components for the MythCore framework

This is the first alpha-level release of the MythCore IO components (packages as they are called in MythCore)

Although this release is only meant to serve as a showcase of the framework's style, it is usable on its own right.

The Package consists simply of the Following:

Core Directory

  • Core.php - this file is included in all MythCore Packages and distributions. It contains the most essential classes of the framework: ** IObject interface, Object Class - Bases of all classes and interfaces in the framework ** CoreConfig, U - configuration and utility classes ** IClassLoader, ClassLoaderBase, CoreLoader - bases for class loader in general and the MythCore class loader. These mainly remove the need for require and require_once hell.
  • Config.inc - Sets framework-wide configurations such as debug mode and the root folder. If you install the Core folder into any other directory than the root of your application, change the setting in this file CoreConfig::Instance()->BasePath(U::DocRoot()). For example, if you installed the Core folder into a folder myth/core/Core in your root application folder, you will set this as follows: CoreConfig::Instance()->BasePath(U::DocRoot() . 'myth/core')
  • Enum.php - The Enum class file, base of all "enumerations" in the framework (we call them that, but they're not your typical C enum)
  • IO Directory - This is where all the IO classes live. Simply, it includes the following class files: ** IStream, IReader, IWriter - interfaces to define what is expected from a stream, a stream reader and a stream writer ** FileStream, OutStream - actual implementation of streams. FileStream enables accessing files in the file-system while OutStream enables writing to the standard output. (can be used along with a text writer to replace echo!) ** TextReader, TextWriter - reader and writer that reads and writes text(strings) to streams ** OpenMode enumeration - used to define the open mode when openning files with streams (more precisely, openning streams on files)

Other files

  • When you extract the files in any of the packages, it will have a Core directory and a Core.inc file outside of it. This is the file you include or require to add support for the framework or this part of the framework
  • If you downloaded the package with the tests, there will be also a Test folder and an .htaccess files. An index.php is there so that if you extracted everything into the document root of a server, visit the root and it will guide you through the ssingle test that's there. Those files are not documented yet and are a sneak peak into other features of the framework
Source: README.md, updated 2015-08-21