Skip to content

Instantly share code, notes, and snippets.

@reactmore
reactmore / php
Created March 30, 2023 08:20
Reactmore
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Reactmore extends BaseConfig
{
public array $app_settings_array = array(
@reactmore
reactmore / php
Created March 16, 2023 08:08
Install Website CI
# Instalations
> Download and Upload thid Repositories on Server
.
├── ...
├── home
| ├── oxyente
| │ ├── core_website # Codeigniter Files
│ │ │ ├── app
│ │ │ ├── public # All assets website on this folder
@reactmore
reactmore / global_instalations_bot.md
Last active August 10, 2021 06:23
global_instalations_bot

instalasi Bot global order P-store

Require

  • Database MYSQL (Optional)
  • PHP 8
  • Root akses (VPS) / CPANEL File Manager jika Shared Host

cara penginstallan VPS/Hosting/Local

@reactmore
reactmore / function.php
Last active August 19, 2021 09:07
Custom route Wordpress API
add_action('rest_api_init', 'custom_api_get_all_posts');
function custom_api_get_all_posts()
{
register_rest_route('custom/v1', '/all-posts', array(
'methods' => WP_REST_Server::READABLE,
'callback' => 'custom_api_get_all_posts_callback'
));
}
@reactmore
reactmore / autopost.php
Created October 9, 2020 09:41
Auto POST Facebook API
public function facebook_share() {
//---------------------------------------------------
// Call Facebook SDK
// GET : https://github.com/facebookarchive/php-graph-sdk
require_once APPPATH . "third_party/facebook/vendor/autoload.php";
//---------------------------------------------------
// GET TOKEN
@reactmore
reactmore / Visitor.php
Last active July 24, 2020 08:21
Libraries Visitor Codeigniter
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class visitor
{
protected $CI;
public function __construct()
{
$this->CI =& get_instance();