ayhan-koyun/iupacnomenclature
最新稳定版本:1.1.1
Composer 安装命令:
composer require ayhan-koyun/iupacnomenclature
包简介
An extension to find the right IUPAC nomenclature for a given chemical structure.
README 文档
README
A TYPO3 CMS extension for automatic generation of IUPAC nomenclature for chemical structures.
Description
This extension provides a comprehensive solution for automatically naming chemical compounds according to IUPAC rules. It supports various classes of organic compounds and can be used in TYPO3 CMS 12.x.
Features
- Automatic IUPAC Nomenclature: Generates correct IUPAC names for chemical structures
- Alkane Support: Complete naming of alkanes (methane, ethane, propane, etc.)
- Extensible Architecture: Modular structure for easy extensions
- TYPO3 CMS Integration: Seamless integration with TYPO3 CMS 12.x
- Frontend Controllers: Provides frontend functionality
Installation
Via Composer (recommended)
composer require ayhan-koyun/iupacnomenclature
Manual Installation
- Download the extension
- Extract it to the
packages/folder of your TYPO3 project - Install the extension via TYPO3 Extension Manager
Usage
Backend
After installation, a new backend module will be available:
- Go to TYPO3 Backend
- Navigate to the "IUPAC Nomenclature" module
- Enter a chemical structure
- Get the correct IUPAC name generated
Frontend
The extension provides frontend controllers that you can use in your templates:
Give in the form the position, the number of functional groups and it returns the right alkane name: functional group: methyl number (count): 2 position: 1,2 returns 1,2-dimethyl
Programmatic Usage
public function __construct( $chainLength, $substituents = [], $isCyclo = false, $isAlcohol = false, $alcoholData = [] ) { $this->chainLength = $chainLength; $this->substituents = $substituents; $this->isCyclo = $isCyclo; $this->isAlcohol = $isAlcohol; $this->alcoholData = $alcoholData; } /** * Returns the (simple) IUPAC name of a (non-cyclic) alkane. */ public function getName() /** * This script returns the correct IUPAC-Name not stereo structure */
System Requirements
- TYPO3 CMS 12.0 or higher
- PHP 8.0 or higher
- Composer
Configuration
The extension can be configured via TYPO3 configuration. See documentation for more details.
Development
Project Structure
Classes/
├── Controller/
│ └── ReviewController.php
└── Service/
├── Alkane.php
├── ChemicalStructureService.php
├── Compound.php
Running Tests
composer test
Contributing
Contributions are welcome! Please note:
- Fork the repository
- Create a feature branch
- Commit your changes
- Create a pull request
License
This extension is licensed under the MIT License. See LICENSE for details.
Support
For questions or issues:
- Create an issue on GitHub
- Contact the author: ayhankoyun@hotmail.de
Changelog
Version 1.0.0
- Initial release
- Basic IUPAC nomenclature functionality
- Alkane support
- TYPO3 CMS 12.x integration
Roadmap
- Support for alkenes and alkynes
- Aromatic compounds
- Functional group detection
- 3D structure visualization
- API endpoints for external integrations
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-09