PHPackages                             elijahcruz/laravel-square - 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. elijahcruz/laravel-square

ActiveLibrary[API Development](/categories/api)

elijahcruz/laravel-square
=========================

Package for Square API, built for Laravel

02PHP

Since Dec 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/elijahcruz12/laravel-square)[ Packagist](https://packagist.org/packages/elijahcruz/laravel-square)[ RSS](/packages/elijahcruz-laravel-square/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Square
==============

[](#laravel-square)

[![SquareVersion](https://camo.githubusercontent.com/9a8193dd8219fc3f2216311b33595ca42e885e273b3425d684a7cec9495ae98a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5371756172655f56657273696f6e2d32303234253246313125324632302d626c7565)](https://camo.githubusercontent.com/9a8193dd8219fc3f2216311b33595ca42e885e273b3425d684a7cec9495ae98a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5371756172655f56657273696f6e2d32303234253246313125324632302d626c7565)

---

**NOTE: This package is still in development and is not yet ready for production use. Use at your own risk.**
-------------------------------------------------------------------------------------------------------------

[](#note-this-package-is-still-in-development-and-is-not-yet-ready-for-production-use-use-at-your-own-risk)

This package is in active development, and will continue to be updated with new features and bug fixes. If you find a bug, please open an issue.

[Square](https://squareup.com) is a Payment Service Provider that offers a variety of services to help businesses accept payments. This package provides a simple way to integrate Square's payment gateway into your Laravel application.

We use the latest version of the Square API to provide you with the most up-to-date features and functionality.

**Current API Version:** 2024-11-20

Documentation
-------------

[](#documentation)

You can find the documentation in the `docs/` directory. The documentation is written in Markdown and can be viewed in any text editor.

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

[](#installation)

You can install the package via composer:

```
composer require elijahcruz/laravel-square
```

You can publish the config file with:

```
php artisan vendor:publish --tag="square-config"
```

Getting started
---------------

[](#getting-started)

To get started you'll need to create a Square Account and create an application in the Square Developer Dashboard. You can find the Square Developer Dashboard [here](https://developer.squareup.com/apps).

Using the package is simple. You can use the `Square` facade to access the Square API. Here's an example of how you can create a customer:

```
use Elijahcruz\Square\Facades\Square;

Square::customers()->create([
    'given_name' => 'John',
    'family_name' => 'Doe',
]);
```

Testing
-------

[](#testing)

We use Pest for testing. You can run the tests using the following command:

```
composer test
```

APIS
----

[](#apis)

If a API is listed below without an `x` next to it, it means that the API is not yet implemented, but is being worked on, or is planned for the future.

- Customers
- Payments
- Checkout
- Invoices
- Orders

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

[](#security)

Please review our security policy [here](SECURITY.md).

Credits
-------

[](#credits)

- [Elijah Cruz](https://github.com/elijahcruz12)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cd86be6ae99ffef0c65552b89e188d783330f4f33af68e9b7a08dc1fd60ee77?d=identicon)[elijahcruz12](/maintainers/elijahcruz12)

---

Top Contributors

[![elijahcruz12](https://avatars.githubusercontent.com/u/14031707?v=4)](https://github.com/elijahcruz12 "elijahcruz12 (9 commits)")

### Embed Badge

![Health badge](/badges/elijahcruz-laravel-square/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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