Download the PHP package cpsit/api-token without Composer
On this page you can find all versions of the php package cpsit/api-token. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cpsit/api-token
More information about cpsit/api-token
Files in cpsit/api-token
Package api-token
Short Description Generate and validate token auth for api requests.
License GPL-2.0-or-later
Homepage https://github.com/CPS-IT/api-token
Informations about the package api-token
API Token Extension for TYPO3
Secure API authentication for TYPO3 CMS applications using token-based authentication.
Features
- ๐ Secure Token Generation - Cryptographically secure random tokens
- ๐ Easy Integration - Simple PHP API for authentication checks
- ๐ Backend Management - TYPO3 backend module for token administration
- โก CLI Support - Command-line interface for automation
- ๐งช Modern Testing - Comprehensive test suite with PHPUnit 11
- ๐ TYPO3 v12/v13 Compatible - Full support for latest TYPO3 versions
Quick Start
1. Installation
2. Generate a Token
3. Protect Your API
4. Make API Requests
Documentation
๐ Complete Documentation
Topic | Description |
---|---|
Introduction | Overview and key features |
Installation | Setup and configuration |
Usage Guide | How to use the extension |
CLI Commands | Command-line interface |
Backend Module | Admin interface guide |
API Reference | Complete API documentation |
Development | Development environment setup |
Testing | Testing guide and best practices |
Migration Guide | Upgrade and migration notes |
Troubleshooting | Common issues and solutions |
Requirements
- TYPO3: 12.4 LTS or 13.0+
- PHP: 8.3 or higher
- Database: MySQL 8.0+, MariaDB 10.5+, or PostgreSQL 12+
Example Usage
Protecting an API Endpoint
Frontend Request Example
Development
Quick Development Setup
Quality Assurance
Architecture
The extension follows modern TYPO3 development patterns:
- Domain-Driven Design with clear separation of concerns
- Dependency Injection using TYPO3's DI container
- PSR Standards compliance (PSR-7, PSR-15, PSR-12)
- Modern PHP features (type declarations, readonly classes)
- Comprehensive Testing with PHPUnit 11 and TYPO3 TestingFramework
Security
- Cryptographically secure token generation using
random_bytes()
- Password hashing with TYPO3's
PasswordHashFactory
- Configurable token expiration (default: 1 year)
- No secrets stored in plain text
- Rate limiting and audit logging (planned features)
Contributing
We welcome contributions! Please see our Development Guide for details on:
- Setting up the development environment
- Code style and quality requirements
- Testing requirements
- Pull request process
Support
- ๐ Documentation
- ๐ Issue Tracker
- ๐ฌ Discussions
License
This extension is licensed under the GNU General Public License v2.0 or later.
Copyright (c) 2021-2024 CPS-IT GmbH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Changelog
See CHANGELOG.md for a detailed history of changes and releases.
Made with โค๏ธ by the CPS-IT team for the TYPO3 community.