PHPackages                             technicalguru/jquery - 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. technicalguru/jquery

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

technicalguru/jquery
====================

Provides jQuery to PHP apps

v1.0.4(5y ago)01.0k1LGPL-3.0-or-laterPHPPHP &gt;=7.0.0

Since Nov 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/technicalguru/php-jquery)[ Packagist](https://packagist.org/packages/technicalguru/jquery)[ RSS](/packages/technicalguru-jquery/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (1)Versions (7)Used By (1)

php-jquery
==========

[](#php-jquery)

This library provides an easy way to get any jQuery libary included in your PHP project. This includes the usage of the remote, original jQuery libarary, or caching it locally on your server. Features include:

- Checking for the latest jQuery version
- Automatically use fix versions for any major version
- Using any flavour jQuery library: minified, slim, uncompressed or slim-minified.
- Listing all available versions
- Using git versions

License
=======

[](#license)

This project is licensed under [GNU LGPL 3.0](LICENSE.md).

Installation
============

[](#installation)

By Composer
-----------

[](#by-composer)

```
composer install technicalguru/jquery

```

By Package Download
-------------------

[](#by-package-download)

You can download the source code packages from [GitHub Release Page](https://github.com/technicalguru/php-jquery/releases)

After Installation Task
-----------------------

[](#after-installation-task)

You will need to make the directory `vendor/technicalguru/jquery/js` writable for your webserver when you want to make use of the local caching feature.

How to use
==========

[](#how-to-use)

Listing available versions
--------------------------

[](#listing-available-versions)

```
$versionList = \TgJQuery\JQuery::getVersions();

```

This method lists all available versions.

Get the latest version number
-----------------------------

[](#get-the-latest-version-number)

The most recent stable version can be fetched by:

```
$lastestVersionNumber = \TgJQuery\JQuery::getLatest();

```

In case you are interested in the latest 3.3 fix:

```
$lastestVersionNumber = \TgJQuery\JQuery::getLatest('3.3');

```

Get the URI of a remote library
-------------------------------

[](#get-the-uri-of-a-remote-library)

The following method will give you URIs for your further inspection:

```
use TgJQuery\JQuery;

// Get URI to latest version, as uncompressed JS
$uri = JQuery::getUri('latest', JQuery::UNCOMPRESSED, TRUE);

// Get URI to 3.5.1 version, as slim JS
$uri = JQuery::getUri('3.5.1', JQuery::SLIM, TRUE);

// Get URI to latest 3.x git build, as minified JS
$uri = JQuery::getUri('3.x-git', JQuery::MINIFIED, TRUE);

```

The boolean parameter `TRUE` tells JQuery to use remote versions only and not to cache it.

You can get the correct HTML script tag to be included in your HTML output in the same way:

```
use TgJQuery\JQuery;

// Get HTML link to latest version, as uncompressed JS
$link = JQuery::getLink('latest', JQuery::UNCOMPRESSED, TRUE);

// Get HTML link to 3.5.1 version, as slim JS
$link = JQuery::getLink('3.5.1', JQuery::SLIM, TRUE);

// Get HTML link to latest 3.x git build, as minified JS
$link = JQuery::getLink('3.x-git', JQuery::MINIFIED, TRUE);

```

Caching the jQuery library
--------------------------

[](#caching-the-jquery-library)

Most projects prefer not to serve the jQuery library from remote CDNs but rather locally. This is also the default. That's why the `getUri()` and `getLink()` calls can be written much shorter.

```
use TgJQuery\JQuery;

// Get a local cache URI to latest version, as minified JS
$uri = JQuery::getUri('latest');

// Get local cache HTML link to 3.5.1 version, as slim minified JS
$link = JQuery::getLink('3.5.1', JQuery::SLIM_MINIFIED);

```

Performance Considerations
--------------------------

[](#performance-considerations)

The current version triggers remote calls to  whenever you call `getLatest()` and `getVersions()` the first time in your script. The version list is not being cached across multiple HTTP requests. This will be added in a later version.

However, it is recommended to stick with a defined version in your application to avoid side effects when jQuery dynamically upgrades in the background.

Contribution
============

[](#contribution)

Report a bug, request an enhancement or pull request at the [GitHub Issue Tracker](https://github.com/technicalguru/php-jquery/issues).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~53 days

Total

5

Last Release

1844d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6360165?v=4)[Ralph Schuster](/maintainers/technicalguru)[@technicalguru](https://github.com/technicalguru)

---

Top Contributors

[![technicalguru](https://avatars.githubusercontent.com/u/6360165?v=4)](https://github.com/technicalguru "technicalguru (33 commits)")

---

Tags

javascriptjavascript-libraryjqueryjavascriptjquery

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/technicalguru-jquery/health.svg)

```
[![Health](https://phpackages.com/badges/technicalguru-jquery/health.svg)](https://phpackages.com/packages/technicalguru-jquery)
```

###  Alternatives

[snapappointments/bootstrap-select

The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 4 support.

9.8k501.2k3](/packages/snapappointments-bootstrap-select)[froala/wysiwyg-editor

A beautiful jQuery WYSIWYG HTML rich text editor. High performance and modern design make it easy to use for developers and loved by users.

5.4k320.3k5](/packages/froala-wysiwyg-editor)[fedemotta/yii2-widget-datatables

DataTables widget for Yii2

36184.4k1](/packages/fedemotta-yii2-widget-datatables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
