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

ActiveLibrary

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 1mo 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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

975d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6b797c49babaf436a3bda6855ac9f3b5d345a32c83f6d1a573933ddb70de788?d=identicon)[almesery](/maintainers/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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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