abstract/core
最新稳定版本:v0.0.3
Composer 安装命令:
composer require abstract/core
包简介
Componential language using HTML-based syntax to access PHP class and method
README 文档
README
Abstract is a powerful PHP library that introduces a componential markup language with an XML-based syntax to access PHP classes and methods. This library includes a Processor, which is responsible for compiling AML (Abstract Markup Language) code.
Features
- Componential markup language with XML-based syntax
- Access PHP classes and methods
- AML (Abstract Markup Language) compilation using the provided Processor
Installation
To use Abstract in your PHP project, you need to have Composer installed. Then, run the following command:
composer require abstracts/abstract
This library also requires symfony/polyfill to work correctly. If you haven't installed it already, you can add it to your project using Composer:
composer require symfony/polyfill
Usage
To use Abstract in your PHP project, you need to import the library's namespace, which is "X". You can do this by adding the following line at the beginning of your PHP file:
<?php require 'vendor/autoload.php'; use Abstract\Processor; // Get AML content from resource $amlContent = Resource::get('src/resources/abstract/app/index.html'); // Load AML content into Processor $processor = new Processor($amlContent, false);
Contributing
Contributions are welcome! If you would like to contribute to Abstract, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request to the main branch of the original repository.
- Please ensure that your code follows the existing coding style and includes appropriate tests.
Credits
Abstract is developed and maintained by Patiparnne Vongchompue (Armes).
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-05-11