Skip to content

Commit 9cd36d0

Browse files
author
Marco Bunge
committed
Add PHP 7.1 support
1 parent 7c70445 commit 9cd36d0

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ php:
66
- 5.5
77
- 5.6
88
- 7.0
9+
- 7.1
910
- hhvm
1011

1112
matrix:
1213
fast_finish: true
1314
allow_failures:
14-
php: 7.0
15+
php: 7.1
1516

1617
cache:
1718
directories:

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
## 1.0.2
44

5-
*Full documentation available now!*
5+
*Full [documentation](/README.md) available now!*
66

77
### Added
88

99
- Create gateway from connection
10+
- PHP 7.1 Support
1011

1112
## 1.0.1
1213

@@ -20,7 +21,6 @@
2021

2122
### Added
2223

23-
- Add mapper
2424
- Add connection service
2525
- Add gateway
2626
- Add hydrator

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The following versions of PHP are supported by this version.
4747
* PHP 5.5
4848
* PHP 5.6
4949
* PHP 7.0
50+
* PHP 7.1
5051
* HHVM
5152

5253
## Usage
@@ -59,7 +60,7 @@ The following versions of PHP are supported by this version.
5960

6061
### Examples
6162

62-
We also provide [Examples](example) for following documentation.
63+
We also provide [Examples](/example) for following documentation.
6364

6465
### Connections
6566

@@ -133,6 +134,24 @@ $second = ConnectionManager::getInstance()->get('second');
133134

134135
```
135136

137+
##### Prefixing
138+
139+
On a shared database it is use full to to prefix tables with a specific name, e.g. application abbreviation. You need to
140+
set the prefix on your connection. The system is prefixing all table names automatically.
141+
142+
Add PHP 7.1 support
143+
144+
```php
145+
<?php
146+
147+
// setup prefixes
148+
$connection->setPrefix('custom_');
149+
$gateway = $connection->createGateway('user'); // connects to custom_user table
150+
151+
```
152+
153+
As you can see you (as do mapper) pass the tablename and internally the tablename will be prefixed.
154+
136155
#### Migration
137156

138157
##### Easy schema setup with SQL
@@ -542,9 +561,9 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
542561
[ico-downloads]: https://img.shields.io/packagist/dt/hawkbit/database.svg?style=flat-square
543562
[ico-coveralls]: https://img.shields.io/coveralls/HawkBitPhp/hawkbit-database/master.svg?style=flat-square
544563

545-
[link-packagist]: https://packagist.org/packages/hawkbit/hawkbit
546-
[link-travis]: https://travis-ci.org/HawkBitPhp/hawkbit
547-
[link-downloads]: https://packagist.org/packages/hawkbit/hawkbit
564+
[link-packagist]: https://packagist.org/packages/hawkbit/hawkbit-database
565+
[link-travis]: https://travis-ci.org/HawkBitPhp/database
566+
[link-downloads]: https://packagist.org/packages/hawkbit/hawkbit-database
548567
[link-author]: https://github.com/mbunge
549568
[link-contributors]: ../../contributors
550-
[link-coveralls]: https://coveralls.io/github/HawkBitPhp/hawkbit
569+
[link-coveralls]: https://coveralls.io/github/HawkBitPhp/hawkbit-database

0 commit comments

Comments
 (0)