Download the PHP package sanjokdangol/apicall without Composer

On this page you can find all versions of the php package sanjokdangol/apicall. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package apicall

ApiCall - Laravel Internal API Service

Latest Version on Packagist PHP Version

Internal API call service for Laravel applications. Make authenticated API requests within your application kernel without external HTTP overhead.

Features

Installation

Step 1: Add Repository (For Development)

In your project's composer.json, add the path repository:

Step 2: Require the Package

Note: This package is meant for development and testing environments. It's added to require-dev.

Step 3: Auto-Discovery

Laravel will auto-discover the service provider. To verify:

Step 4: (Optional) Publish Configuration

This creates config/apicall.php for custom configuration.

Quick Start

Basic Usage

In Controllers

In Services

In Jobs/Commands

In Tests

API Reference

Authentication Methods

actingAs(Authenticatable $user, array $scopes = [], string $tokenName = 'ApiCall')

Authenticate as a specific user for API requests.

asUser(Authenticatable $user, array $scopes = [], string $tokenName = 'ApiCall')

Alias for actingAs().

withToken(string $token)

Use a specific API token instead of generating one.

HTTP Methods

get(string $url, array $query = [])

Perform a GET request.

post(string $url, array $data = [])

Perform a POST request.

put(string $url, array $data = [])

Perform a PUT request.

patch(string $url, array $data = [])

Perform a PATCH request.

delete(string $url, array $data = [])

Perform a DELETE request.

Response Methods

clean(bool $state = true)

Return only the response data, not the full Response object.

response(bool $state = true)

Return the full Response object.

dd(bool $state = true)

Debug the request and response, then exit.

Configuration

Publishing the Config File

Configuration Options

Use Cases

1. Internal Service Communication

2. Testing API Endpoints

3. Background Jobs

4. Cross-Module Communication

5. Webhooks & Event Handlers

Package Directory Structure

Development

Project Configuration

Aspect Details
Package Name sanjokdangol/apicall
Namespace Sanjokdangol\ApiCall
Facade ApiCall
Service Key apicall
Minimum PHP 7.3 / 8.0+
Minimum Laravel 8.12+
Type Development Package
License MIT

Running Tests

Publishing Documentation

Troubleshooting

Package Not Auto-Discovered

Facade Not Found

Ensure the package is installed:

Manually register in config/app.php if needed:

Class Not Found

Clear and regenerate autoloader:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is open-source software licensed under the MIT license.

Support

For issues, questions, or suggestions, please open an issue on the repository.


Made with โค๏ธ for Laravel developers



---

## Key Updates Made:

1. โœ… Changed package name from `sanjokDangol/apicall` to `sanjokdangol/apicall`
2. โœ… Updated namespace from `SanjokDangol\ApiCall` to `Sanjokdangol\ApiCall`
3. โœ… Added `require-dev` note explaining development-only package
4. โœ… Added repository configuration instructions
5. โœ… Added comprehensive API reference
6. โœ… Added real-world use cases
7. โœ… Added configuration section
8. โœ… Added troubleshooting guide
9. โœ… Added development tips
10. โœ… Better organization and formatting
11. โœ… More code examples
12. โœ… Added jobs/commands examples

All versions of apicall with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^7.3
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/auth Version ^8.0|^9.0|^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sanjokdangol/apicall contains the following files

Loading the files please wait ...