Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit 9916361

Browse files
committed
documentation cleanup
1 parent 70d9a9d commit 9916361

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

README.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
The purpose of this project is to create a set-it-and-forget-it package that can be
1717
installed without much effort to encrypt and decrypt Eloquent model attributes stored
1818
in your database tables, transparently. It is therefore highly opinionated but built
19-
for configuration.
19+
for [configuration](#step-3-configure-the-package).
2020

21-
When enabled, it automagically begins encrypting data as it is stored in the model
22-
attributes and decrypting data as it is recalled from the model attributes.
21+
When [enabled](#step-2-enable-the-package-optional), it automagically begins encrypting
22+
data as it is stored in the model attributes and decrypting data as it is recalled from
23+
the model attributes.
2324

2425
All data that is encrypted is prefixed with a header so that encrypted data can be
2526
easily identified, encryption keys rotated, and (optionally) versioning of the encrypted
@@ -53,7 +54,8 @@ directory. The most logical place to start are the [docs for the `HasEncryptedAt
5354
+ [Can I manually encrypt or decrypt arbitrary data?](#can-i-manually-encrypt-or-decrypt-arbitrary-data)
5455
+ [Can I search encrypted data?](#can-i-search-encrypted-data)
5556
+ [Can I encrypt all my `User` model data?](#can-i-encrypt-all-my-user-model-data)
56-
+ [Is this package compatible with elocryptfive out-of-the-box?](#is-this-package-compatible-with-elocryptfive-out-of-the-box)
57+
+ [Is this package compatible with `elocryptfive` out-of-the-box?](#is-this-package-compatible-with-elocryptfive-out-of-the-box)
58+
+ [Is this package compatible with `insert-random-Eloquent-package-here`?](#is-this-package-compatible-with-insert-random-eloquent-package-here)
5759
* [Implementations](#implementations)
5860
* [Credits](#credits)
5961
* [Contributing](#contributing)
@@ -70,8 +72,8 @@ directory. The most logical place to start are the [docs for the `HasEncryptedAt
7072
**Framework**|**Version**|**Release**|**Status**|**PHP v7.1**|**PHP v7.2**|**PHP v7.3**
7173
:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:
7274
Laravel|[v5.5](https://laravel.com/docs/5.5/releases)|[v0.1.1](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.1.1) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.1.1))|Stable|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.1.1)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.1.1)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.1.1)](https://travis-ci.org/austinheap/laravel-database-encryption)
73-
Laravel|[v5.6](https://laravel.com/docs/5.6/releases)|[v0.2.0](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.1.1) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.2.0))|Beta|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)
74-
Laravel|[v5.7](https://laravel.com/docs/5.7/releases)|[v0.2.0](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.2.0) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.2.0))|Beta|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0)](https://travis-ci.org/austinheap/laravel-database-encryption)
75+
Laravel|[v5.6](https://laravel.com/docs/5.6/releases)|[v0.2.0-rc3](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.2.0-rc3) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.2.0-rc3))|Beta|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0-rc3)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0-rc3)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0-rc3)](https://travis-ci.org/austinheap/laravel-database-encryption)
76+
Laravel|[v5.7](https://laravel.com/docs/5.7/releases)|[v0.2.0-rc3](https://github.com/austinheap/laravel-database-encryption/releases/tag/v0.2.0-rc3) ([Packagist](https://packagist.org/packages/austinheap/laravel-database-encryption#v0.2.0-rc3))|Beta|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0-rc3)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0-rc3)](https://travis-ci.org/austinheap/laravel-database-encryption)|[![Build Status](https://travis-ci.org/austinheap/laravel-database-encryption.svg?branch=v0.2.0-rc3)](https://travis-ci.org/austinheap/laravel-database-encryption)
7577

7678
## Schemas
7779

@@ -277,7 +279,7 @@ the encrypted value as needed.
277279

278280
No! The same issue with searching also applies to authentication because authentication requires search.
279281

280-
### Is this package compatible with [elocryptfive](https://github.com/delatbabel/elocryptfive) out-of-the-box?
282+
### Is this package compatible with [`elocryptfive`](https://github.com/delatbabel/elocryptfive) out-of-the-box?
281283

282284
No! While it _is_ a (more modern) replacement, it is not compatible directly out of the box. To migrate to this package from elocryptfive, you must:
283285

@@ -291,6 +293,12 @@ No! While it _is_ a (more modern) replacement, it is not compatible directly out
291293

292294
A pull request for automated migrations is more than welcome but is currently out of the scope of this project's goals.
293295

296+
### Is this package compatible with `insert-random-Eloquent-package-here`?
297+
298+
Probably not! It's not feasible to guarantee interoperability between random packages out there, especially packages that also heavily modify Eloquent's default behavior.
299+
300+
Issues and pull requests regarding interoperability will not be accepted.
301+
294302
## Implementations
295303

296304
The following decently-trafficed sites use this package in production:

phpdoc.xml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpdoc>
2+
<phpdocumentor>
33
<title>laravel-database-encryption docs</title>
44
<parser>
5-
<default-package-name>\AustinHeap\Database\Encryption</default-package-name>
65
<target>build/docs</target>
76
<encoding>utf8</encoding>
87
<markers>
@@ -17,8 +16,8 @@
1716
<target>docs</target>
1817
</transformer>
1918
<transformations>
20-
<template name="checkstyle"/>
21-
<template name="responsive-twig"/>
19+
<template name="checkstyle" />
20+
<template name="clean" />
2221
</transformations>
2322
<files>
2423
<directory>src</directory>
@@ -32,4 +31,4 @@
3231
<errors>build/log/{DATE}.errors.log</errors>
3332
</paths>
3433
</logging>
35-
</phpdoc>
34+
</phpdocumentor>

src/Traits/HasEncryptedAttributes.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
* - setAttribute -- has been over-ridden here.
6161
* - getAttributes -- has been over-ridden here.
6262
*
63-
* @see Illuminate\Support\Facades\Crypt
64-
* @see Illuminate\Contracts\Encryption\Encrypter
65-
* @see Illuminate\Encryption\Encrypter
63+
* @see \Illuminate\Support\Facades\Crypt
64+
* @see \Illuminate\Contracts\Encryption\Encrypter
65+
* @see \Illuminate\Encryption\Encrypter
6666
* @link http://laravel.com/docs/5.5/eloquent
6767
* @link https://github.com/austinheap/laravel-database-encryption
6868
* @link https://packagist.org/packages/austinheap/laravel-database-encryption

0 commit comments

Comments
 (0)