Libraries tagged by string convert

spaf/simputils

4 Favers
7207 Downloads

Simple minimal but useful set of utils (properties, strings, datetimes, etc.)

Go to Download


rhdevelopment/inflecta

0 Favers
0 Downloads

Inflecta: lightweight string inflector utilities for modern PHP projects.

Go to Download


oceanmoon/core

0 Favers
9 Downloads

Core PHP utilities for floats, integers, arrays, types, and string conversion with IEEE-754 support.

Go to Download


gryfoss/int-combiner

1 Favers
96 Downloads

Allows easy concatenation of ints without conversion through strings.

Go to Download


bakgul/kernel

1 Favers
232 Downloads

This is a helper package, and it isn't meant to be used independently. That being said, it contains some nice helper classes to deal with the file system, strings, arrays, naming conventions, etc. If you need such functionalities, you may find this package helpful. On the other hand, its real purpose is to collect some classes and methods that are being used by multiple packages that are part of Packagified Laravel.

Go to Download


sutton-signwriting/core

0 Favers
11 Downloads

Core utilities for Formal SignWriting (FSW/SWU): conversion, queries, and style strings.

Go to Download


aozen/language-detector

0 Favers
35 Downloads

This package provides a set of functions to detect and manipulate language-specific strings, including language detection, case conversion, and language-based filtering.

Go to Download


nalabdou/algebra-csv

1 Favers
1 Downloads

CSV adapter for algebra-php — file paths, SplFileInfo, raw strings, resource handles. Auto-detect delimiter, encoding conversion, type coercion.

Go to Download


yarri/email-parser

0 Favers
20 Downloads

Parses raw MIME email messages from strings or files into structured PHP objects, with automatic UTF-8 conversion, attachment detection, and built-in caching

Go to Download


lkcodes/mycode

1 Favers
44 Downloads

A collection of commonly used tools, such as exporting tables, manipulating databases,File caching, string processing/encoding and decoding, array and object conversion, and so on. It can be used in any framework

Go to Download


daphascomp/daphascompsms

0 Favers
2 Downloads

# Authentication Requests made to our APIs must be authenticated, there are two ways to do this: 1. Authenticating using your API apiUsername and apiPassword - `Basic Auth` 2. Authenticating using an Auth Token - `Bearer Token` ## Method 1: Basic Auth Basic Authentication is a method for an HTTP user agent (e.g., a web browser) to provide a apiUsername and apiPassword when making a request. When employing Basic Authentication, users include an encoded string in the Authorization header of each request they make. The string is used by the request’s recipient to verify users’ identity and rights to access a resource. The Authorization header follows this format: > Authorization: Basic base64(apiUsername:apiPassword) So if your apiUsername and apiPassword are `onfon` and `!@pas123`, the combination is `onfon:!@pas123`, and when base64 encoded, this becomes `b25mb246IUBwYXMxMjM=`. So requests made by this user would be sent with the following header: > Authorization: Basic b25mb246IUBwYXMxMjM= | Description | | ---------------------------------------------------------------------------------------------- | | **apiUsername** `String` `Required` Your onfon account apiUsername, retrieved from portal | | **apiPassword** `String` `Required` Your onfon account apiPassword, retrieved from portal | ## Method 2: Bearer Tokens This authentication stategy allows you to authenticate using JSON Web Token ``JWT` that will expire after given duration. Each Access Token is a `JWT`, an encoded JSON object with three parts: the `header`, the `payload`, and the `signature`. The following is an example Access Token generated for Conversations > Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c ### Getting the token To generate the token, make a `POST` request to `/v1/authorization` endpoint with your `apiUsername` and `apiPassword` This request should be made from your server and not on the client side such as browser or mobile environment. You will receive a JSON similar to below: `{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "validDurationSeconds": 3600}` You can use the token received to make API calls. The token will be valid for value of `validDurationSeconds`, before which you should generate a new token. #### Request Body ``` { "apiUsername": "root", "apiPassword": "hakty11" } ``` #### Response Body ``` { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "validDurationSeconds": 3600 } ``` #### Example Curl ``` curl --location --request POST 'https://apis.onfonmedia.co.ke/v1/authorization' \ --data-raw '{ "apiUsername": "correctapiUsername", "apiPassword": "correctapiPassword" } ``` #### Making an API call You will be required to pass the token in `Authorization` header prefixed by `Bearer` when calling other endpoints. Example `Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c`

Go to Download


elliottlawson/converse

4 Favers
3601 Downloads

A Laravel package for storing and managing AI conversation history in your applications

Go to Download


web-fu/anymapper

2 Favers
14 Downloads

Library that allows to map objects and arrays into objects and arrays with strong type support and pattern detection.

Go to Download


tom-sapletta-com/phunc

0 Favers
78 Downloads

Functional Environment for PHP

Go to Download


<< Previous