PHPackages                             tkriek/google\_categories - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tkriek/google\_categories

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tkriek/google\_categories
=========================

Sort categories for different locales based on category\_id and build relations with parent\_id

v1.0.1(8y ago)011MITPHPPHP ^7.0

Since Apr 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/TomKriek/google_categories)[ Packagist](https://packagist.org/packages/tkriek/google_categories)[ RSS](/packages/tkriek-google-categories/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

google\_categories
==================

[](#google_categories)

Sorting google categories with parent\_id

This was meant to set up a relation between categories so they can easily be added to a database.

WIP for japanese and chinese locale because of their language constructs

`iso.php` file contains enabled locales to retrieve a google taxonomy file from and parse it.

Example of how to use the sorter OOP style

```
