PHPackages                             pacific-softwares/projectscore - 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. [API Development](/categories/api)
4. /
5. pacific-softwares/projectscore

ActiveLibrary[API Development](/categories/api)

pacific-softwares/projectscore
==============================

A Laravel package for managing common API configuration and services across multiple Pacific Software projects

v1.0.1(3mo ago)09MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Jan 28Pushed 3mo agoCompare

[ Source](https://github.com/Pacific-Softwares/projects-core)[ Packagist](https://packagist.org/packages/pacific-softwares/projectscore)[ RSS](/packages/pacific-softwares-projectscore/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Projects Core Package
=====================

[](#projects-core-package)

A Laravel package for managing common API configuration and services across multiple Pacific Software projects.

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

[](#installation)

Install the package via Composer:

```
composer require pacific-softwares/projectscore
```

Configuration
-------------

[](#configuration)

The package has a default API base URL set to `https://api.pacificsoftwares.com/projectscore/api/v1`.

You can override this default by setting `PROJECTSCORE_API_BASE_URL` in your `.env` file (optional):

```
PROJECTSCORE_API_BASE_URL=https://your-custom-api-url.com/projectscore/api/v1
PROJECTSCORE_API_KEY=your-api-key-here
PROJECTSCORE_API_TIMEOUT=30
```

If `PROJECTSCORE_API_BASE_URL` is not set in `.env`, the package will use its default value.

Publishing Config
-----------------

[](#publishing-config)

To publish the config file (optional):

```
php artisan vendor:publish --tag=projectscore-config
```

This will publish the config to `config/projectscore.php`.

Usage
-----

[](#usage)

### Using the Facade

[](#using-the-facade)

```
use ProjectsCore\Facades\ProjectsCore;

// Get the API base URL
$baseUrl = ProjectsCore::getBaseUrl();

// Check if API is configured
if (ProjectsCore::isConfigured()) {
    // API is available
}

// Build a full URL from a path
$url = ProjectsCore::url('users/123');

// Make GET request
$response = ProjectsCore::get('users', ['page' => 1]);
$users = $response->json();

// Make POST request
$response = ProjectsCore::post('users', [
    'name' => 'John Doe',
    'email' => 'john@example.com'
]);
$user = $response->json();

// Make PUT request
$response = ProjectsCore::put('users/123', [
    'name' => 'Jane Doe'
]);

// Make PATCH request
$response = ProjectsCore::patch('users/123', [
    'email' => 'jane@example.com'
]);

// Make DELETE request
$response = ProjectsCore::delete('users/123');
```

### Using the Service

[](#using-the-service)

```
use ProjectsCore\Services\ApiService;

$apiService = app('projectscore.api');
$baseUrl = $apiService->getBaseUrl();

// Make requests
$response = $apiService->get('users');
$data = $response->json();
```

### Response Handling

[](#response-handling)

All HTTP methods return an `Illuminate\Http\Client\Response` instance, which provides various methods:

```
$response = ProjectsCore::get('users');

// Check if request was successful
if ($response->successful()) {
    $data = $response->json();
}

// Get status code
$statusCode = $response->status();

// Get response body as array
$data = $response->json();

// Get response body as string
$body = $response->body();

// Check for errors
if ($response->failed()) {
    // Handle error
}
```

Service Provider
----------------

[](#service-provider)

The package is automatically registered via Laravel's package discovery.

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance86

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86ef6f5a1b19411cb2eb080d8cce611e79158ecddaae983ab33f36ccad6db175?d=identicon)[pacificsw](/maintainers/pacificsw)

---

Top Contributors

[![prashant-shukla](https://avatars.githubusercontent.com/u/691681?v=4)](https://github.com/prashant-shukla "prashant-shukla (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pacific-softwares-projectscore/health.svg)

```
[![Health](https://phpackages.com/badges/pacific-softwares-projectscore/health.svg)](https://phpackages.com/packages/pacific-softwares-projectscore)
```

###  Alternatives

[spatie/laravel-query-builder

Easily build Eloquent queries from API requests

4.4k26.9M219](/packages/spatie-laravel-query-builder)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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