- Lightweight simple PHP library
- With many useful tools and functions
- Without overhead
- Designed based on IoC
For more details see Presentation and API documentation.
- PHP 8.x
composer require smartfactory/smartfactory"
composer.json
{
...
"require": {
"php": ">=8.0",
"smartfactory/smartfactory": ">=2.1.21"
}
...
}
- Git-clone the demo application SmartFactoryDemo and run 'composer update'.
- Use the script database/create_database_mysql.sql (create_database_mssql.sql) to create a demo database necessary for some examples.
- View and study the API documentation in the folder docs or here API documentation.
- Study the core code of the library SmartFactory.
-
Git-clone the demo application SmartFactoryDemo and run 'composer update'.
-
Study the directory structure of the demo application and the code.
-
Implement your classes and functions.
-
Bind you classes to the interfaces in the file initialization_inc.php to be able to use the IoC approach for creating objects offered by the library SmartFactory.
-
Implement you business logic in the root directory or any subdirectory.
-
Implement the API request handlers for JSON or XML requests if necessary.
-
Add translation texts for your application over the localization/edit.php or directly into the JSON file localization/texts.json. Use the script localization/check.php to check your translations for missing translations.
docs
src
SmartFactory
Interfaces
DatabaseWorkers
This directory contains the documentation about classes, interfaces and functions of the library SmartFactory.
This is the root directory for all classes and interfaces. The class loader is implemented based on PSR4 approach. You have no need to add additional class loader function.
This directory contains the core classes and interfaces of the library SmartFactory.
This directory contains the core interfaces of the library SmartFactory.
This directory contains the core classes of the library SmartFactory for working with databases.