Skip to content

Commit

Permalink
rewritten fetcher (now dispenser)
Browse files Browse the repository at this point in the history
phpstan bleeding edge
  • Loading branch information
Zrnik committed Oct 22, 2021
1 parent d8b4022 commit 0875701
Show file tree
Hide file tree
Showing 53 changed files with 3,630 additions and 3,438 deletions.
13 changes: 10 additions & 3 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
Copyright 2020 Štěpán Zrník

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 changes: 14 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,24 @@
![Packagist Version](https://img.shields.io/packagist/v/zrnik/mksql)

### What is it?
*So, I just found out that the thing I created
is usually called an ORM.*

**MkSQL** is a tool for keeping your tables up to
date with PHP code. It aims for a simple use cases,
so it cannot handle very complex stuff. Explore the
docs to see what is possible.
*So, I just found out that the thing I created is usually called an ORM.*

This package simply allows you to define entities,
that represent your database tables, and automatically
creates them for you.
**MkSQL** is a tool for keeping your tables up to date with PHP code. It aims for a simple use cases, so it cannot
handle very complex stuff. Explore the docs to see what is possible.

You can also skip the `ORM` part and use `Updater` class
to create your database without any entities, instead
of creating them with Adminer *(or PHPMyAdmin)*.
This package simply allows you to define entities, that represent your database tables, and automatically creates them
for you.

You can also skip the `ORM` part and use `Updater` class to create your database without any entities, instead of
creating them with Adminer *(or PHPMyAdmin)*.

Documentation index is in [docs/index.md](docs/index.md) file.

#### Requirements

This package **requires** you to run it with PHP 8+, as it uses
the new stuff this version delivers. Mainly attributes and
promoted constructor properties.
This package **requires** you to run it with PHP 8+, as it uses the new stuff this version delivers. Mainly attributes
and promoted constructor properties.

```json
{
Expand All @@ -49,20 +44,20 @@ promoted constructor properties.

Read more at [Installation and Configuration](docs/install-and-config.md) page.

#### Supported Drivers:
#### Supported Drivers:

- [✅ MySQL](https://www.mysql.com) (Compatible with MariaDB)
- [✅ SQLite 3](https://www.sqlite.org/index.html)

#### This package contains a [Tracy](https://tracy.nette.org/en/) panel

Add this to your bootstrap file:

```php
Tracy\Debugger::getBar()->addPanel(new \Zrnik\MkSQL\Tracy\Panel());
```

Or, if you are using [Nette Framework](https://nette.org/en/),
register it in your configuration file:
Or, if you are using [Nette Framework](https://nette.org/en/), register it in your configuration file:

```neon
tracy:
Expand Down
Loading

0 comments on commit 0875701

Please sign in to comment.