PHPackages                             almesery/laravel-foodics - 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. almesery/laravel-foodics

ActiveLibrary[API Development](/categories/api)

almesery/laravel-foodics
========================

This is my package laravel-foodics

1.0.0(2y ago)113MITPHPPHP ^8.1

Since Sep 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/almesery/laravel-foodics)[ Packagist](https://packagist.org/packages/almesery/laravel-foodics)[ Docs](https://github.com/almesery/laravel-foodics)[ RSS](/packages/almesery-laravel-foodics/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

This is my package laravel-foodics
==================================

[](#this-is-my-package-laravel-foodics)

[![Latest Version on Packagist](https://camo.githubusercontent.com/017bdee4eb78b22fb40f8e7ff4ff051d4afa1a2a9e5b3b0bdc51b94e0da83f38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6d65736572792f6c61726176656c2d666f6f646963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/almesery/laravel-foodics)[![Total Downloads](https://camo.githubusercontent.com/8a29ba7255b40c3c8dfd131f75548d57f501357652183462362f17c87879e841/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c6d65736572792f6c61726176656c2d666f6f646963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/almesery/laravel-foodics)

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

[](#installation)

You can install the package via composer:

```
composer require almesery/laravel-foodics
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Foodics\FoodicsServiceProvider"
```

This is the contents of the published config file:

```
return [

    "foodics_mode" => env("FOODICS_MODE", "sandbox"),

    "client_id" => env("FOODICS_CLIENT_ID", null),

    "client_secret" => env("FOODICS_CLIENT_SECRET", null),

    "redirect_uri" => env("FOODICS_REDIRECT_URI", null),

    "webhook_url" => env("FOODICS_WEBHOOK_URL", null)

];
```

Usage
-----

[](#usage)

### First Make OAuth Redirection

[](#first-make-oauth-redirection)

make sure you open foodics account

```

    use Foodics\Services\FoodicsRedirectServices;

    $foodicsOAuthServices = new FoodicsRedirectServices();

    return $foodicsOAuthServices->redirect();

    // you will redirect to [FOODICS_REDIRECT_URI], the url contain code as a query parameter
```

### Second Make Authorization Request to get Access Token

[](#second-make-authorization-request-to-get-access-token)

```

   use Foodics\Services\FoodicsAuthorizationServices;

   $foodicsAuthorizationServices = new FoodicsAuthorizationServices();

   // $code variable you can get from the previous request
   $response =  $foodicsOAuthServices->authorize($code);

   $access_token = $response["access_token"];
```

### Who IAm Request

[](#who-iam-request)

```

   use Foodics\Foodics;

   $foodics = new Foodics($access_token);

   $data = $foodics->settings()->whoami();

   echo $data;
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Abdalrahman Almesery](https://github.com/almesery)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

1028d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36532405?v=4)[Abdalrahman almesery](/maintainers/almesery)[@almesery](https://github.com/almesery)

---

Top Contributors

[![almesery](https://avatars.githubusercontent.com/u/36532405?v=4)](https://github.com/almesery "almesery (1 commits)")

---

Tags

laravelalmeserylaravel-foodics

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/almesery-laravel-foodics/health.svg)

```
[![Health](https://phpackages.com/badges/almesery-laravel-foodics/health.svg)](https://phpackages.com/packages/almesery-laravel-foodics)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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