https://github.com/sam016/php-textwrap
PHP TextWrapper library inspired by python's textwrap
https://github.com/sam016/php-textwrap
php php7 text-wrap
Last synced: 2 months ago
JSON representation
PHP TextWrapper library inspired by python's textwrap
- Host: GitHub
- URL: https://github.com/sam016/php-textwrap
- Owner: sam016
- License: mit
- Created: 2019-08-24T13:19:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T07:06:37.000Z (over 5 years ago)
- Last Synced: 2025-12-14T09:23:21.114Z (6 months ago)
- Topics: php, php7, text-wrap
- Language: Python
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-textwrap
- [Introduction](#Introduction)
- [Requirements](#Requirements)
- [Installation](#Installation)
- [Development](#Development)
- [Setup](Setup)
- [Docker shell](#Docker-shell)
- [Tests](#Tests)
- [Issues](#Issues)
## Introduction
**php-textwrap** is the library inspired by [Python](https://docs.python.org/)'s [textwrap](https://docs.python.org/3.1/library/textwrap.html)
## Requirements
Only requirement:
php >= 7.2
## Installation
composer require sam016/php-textwrap
## Development
### Setup
1. Build the docker container
`docker-compose build`
2. Start the docker container
`docker-compose up`
### Docker shell
Use the following command to execute inside the docker container
`docker exec -it $(docker ps -aqf 'name=textwrap') bash`
## Tests
Use the following command inside the container to run the test cases
`composer test`
Use the following command from host machine to run the test cases
`docker exec -it $(docker ps -aqf 'name=textwrap') composer test`
## Issues
Guidelines for raising the bugs:
1. Please check the existing issues in the **Issues** section before creating a new one.
2. State
- reproduction steps
- library version
- php version
- crystal clear description about issue
- did it just get too much?