BabDev / Pagerfanta

Pagination library for PHP applications with support for several data providers
Other
381 stars 170 forks source link

Restructure to support split packages #9

Closed mbabker closed 4 years ago

mbabker commented 4 years ago

This is an initial pass on restructuring this repository in order to sanely support a git subsplit (while still supporting the current monorepo).

The files are reorganized to support 8 separate packages:

As is, this creates new namespaces for all of the adapter classes with B/C for dependencies to the monolithic package, once 3.0 comes around the old class names will go away.

Purposefully, I didn't move any of the deprecated adapters. It's clearly not a lot of work to do it, and might make it easier for someone to pick up and maintain if they want to use one of them if done, but I didn't see the value personally since they're all reliant on unmaintained upstreams.

Some pros of having split packages:

Some cons of split packages:

TODO