Giter Club home page Giter Club logo

crowdin-api-client-php's Introduction

Crowdin PHP client

The Crowdin PHP client is a lightweight interface to the Crowdin API. It provides common services for making API requests.

Our API is a full-featured RESTful API that helps you to integrate localization into your development process. The endpoints that we use allow you to easily make calls to retrieve information and to execute actions needed.

Requirements

  • PHP >= 7.1

Installation

Install via Composer

composer require crowdin/crowdin-api-client

Quick Start

The API client must be instantiated and configured before calling any API method.

use CrowdinApiClient\Crowdin;

$crowdin = new Crowdin([
    'access_token' => '<access_token>',
    'organization' => '<organization_domain>', // optional
]);

<access_token> - Personal Access Token. You can generate Personal Access Token in your Crowdin Account Settings.

<organization_domain> - Organization domain name (for Crowdin Enterprise users only).

For more about Authorization see the documentation.

Running methods

  • Create

    $directory = $crowdin->directory->create(
        <project_id>,
        ['name'=> 'My Directory']
    );
  • Edit

    $directory->setTitle('My Title');
    
    $crowdin->directory->update($directory);
  • Delete

    $crowdin->directory->delete($directory->getProjectId(), $directory->getId());

Seeking Assistance

If you find any problems or would like to suggest a feature, please read the How can I contribute section in our contributing guidelines.

Contributing

If you would like to contribute, please read the Contributing Guidelines.

License

The Crowdin PHP client is licensed under the MIT License.
See the LICENSE file distributed with this work for additional
information regarding copyright ownership.

Except as contained in the LICENSE file, the name(s) of the above copyright
holders shall not be used in advertising or otherwise to promote the sale,
use or other dealings in this Software without prior written authorization.

crowdin-api-client-php's People

Contributors

andrii-bodnar avatar sidenser avatar mala-karta avatar tchapuis avatar elliotbruneel avatar pdelre avatar jmleroux avatar ivdimova avatar kmartin62 avatar mlahargou avatar trukes avatar kirejko avatar yozhef avatar misantron avatar uintaam avatar faizan1191 avatar rvxlab avatar syastrebov avatar zrnik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.