PHPackages                             awema-pl/module-base-js - 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. awema-pl/module-base-js

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

awema-pl/module-base-js
=======================

Base for modules Awema.

v1.0.22(4y ago)05614MITJavaScript

Since Oct 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/awema-pl/module-base-js)[ Packagist](https://packagist.org/packages/awema-pl/module-base-js)[ Docs](https://github.com/awemapl/basejs)[ RSS](/packages/awema-pl-module-base-js/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (24)Used By (14)

BaseJS
======

[](#basejs)

[![Coverage report](https://camo.githubusercontent.com/debbcd236ae3e1915a883f461f90c1fc3fc5fac810082252299fd588f8180694/68747470733a2f2f7265706f2e6177656d612e706c2f344742574f2f6177656d612d706c2f6d6f64756c652d626173652d6a732f6261646765732f6d61737465722f636f7665726167652e737667)](https://www.awema.pl/)[![Build status](https://camo.githubusercontent.com/d1ef5a0fdc5a4c0d42ab193682b61ceb2a6c7b26730ce4e3da5570229ff8a86d/68747470733a2f2f7265706f2e6177656d612e706c2f344742574f2f6177656d612d706c2f6d6f64756c652d626173652d6a732f6261646765732f6d61737465722f6275696c642e737667)](https://www.awema.pl/)[![Composer Ready](https://camo.githubusercontent.com/1baefd78019235cf76217dc2e7d5427d2a7c80ab8294dbdba956ab209953a632/68747470733a2f2f7777772e6177656d612e706c2f344742574f2f6177656d612d706c2f6d6f64756c652d626173652d6a732f7374617475732e737667)](https://www.awema.pl/)[![Downloads](https://camo.githubusercontent.com/f9edbc1b96a9636c91fe1e3922f19f83144d2670c04ed6b37d16f9734c4c9afd/68747470733a2f2f7777772e6177656d612e706c2f344742574f2f6177656d612d706c2f6d6f64756c652d626173652d6a732f646f776e6c6f6164732e737667)](https://www.awema.pl/)[![Last version](https://camo.githubusercontent.com/338ff45d75979532babd67c15a6f01dad8356920508f3dd7b60880cb41135a2d/68747470733a2f2f7777772e6177656d612e706c2f344742574f2f6177656d612d706c2f6d6f64756c652d626173652d6a732f76657273696f6e2e737667)](https://www.awema.pl/)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

Installation
------------

[](#installation)

Via Composer

```
$ composer require awema-pl/module-base-js
```

The package will automatically register itself.

You can publish the migration with:

```
php artisan vendor:publish --provider="AwemaPL\BaseJS\Providers\BaseJSServiceProvider" --tag="migrations"
```

After the migration has been published you can create the table for BaseJS by running the migrations:

```
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="AwemaPL\BaseJS\Providers\BaseJSServiceProvider" --tag="config"
```

Publish js/css files for all awema-pl packages

```
php artisan vendor:publish --tag=awema-public

```

Examples of use
---------------

[](#examples-of-use)

```
use AwemaPL\BaseJS\Facades\BaseJS;

BaseJS::lowerStr('Some String'); // 'some string'

BaseJS::count(); // 1
```

Methods
-------

[](#methods)

#### example()

[](#example)

Description some example.

#### count()

[](#count)

Description some count.

#### validate(string $email)

[](#validatestring-email)

Throws an `InvalidArgumentException` is email is invalid.

Testing
-------

[](#testing)

You can run the tests with:

```
composer test
```

Frontend development
--------------------

[](#frontend-development)

### Stack

[](#stack)

- Gulp to run all tasks ( configure in `gulpfile.js` )
- Rollup to bundle javascript ( configure in `rollup.config.js` )
- Babel for transpiling and polyfilling for legacy browsers ( configure in `.babelrc.js` )
- Stylus and PostCSS to process and bundle CSS ( configure in `postcss.config.js` )
- BrowserSync to run dev server ( serves both `/dist` and `/examples` as `http://localhost:3000` )

Target browsers list can be found in `.browserslistrc` and is used by Babel and PostCSS

**Caution** `/dist` folder is cleared each time the Gulp starts. For long-term files saving use `examples` folder

### NPM scripts

[](#npm-scripts)

`npm run watch` or `npm start` to run dev server with live reload `npm run build` to build production minified version

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email :author\_email instead of using the issue tracker.

Credits
-------

[](#credits)

- [theAlex](https://github.com/awemapl)
- [All Contributors](../../contributors%5D)

License
-------

[](#license)

GNU General Public License v3.0. Please see the [license file](license.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~19 days

Recently: every ~85 days

Total

23

Last Release

1615d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68942388?v=4)[Awema](/maintainers/awema-pl)[@awema-pl](https://github.com/awema-pl)

---

Top Contributors

[![nepras](https://avatars.githubusercontent.com/u/13780106?v=4)](https://github.com/nepras "nepras (5 commits)")[![awema-pl](https://avatars.githubusercontent.com/u/68942388?v=4)](https://github.com/awema-pl "awema-pl (2 commits)")

---

Tags

laravelBaseJS

### Embed Badge

![Health badge](/badges/awema-pl-module-base-js/health.svg)

```
[![Health](https://phpackages.com/badges/awema-pl-module-base-js/health.svg)](https://phpackages.com/packages/awema-pl-module-base-js)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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